port: clean up previous commit

This commit is contained in:
fgsfds committed 2024-05-18 19:00:40 +02:00
1 parent 4c552a42f2
commit ada20c526a
4 files changed
+1 -18

No files matched your search

-8
View File
@@ -242,13 +242,6 @@ void schedStartFrame(OSSched *sc)
videoStartFrame();
}
void schedAudioFrame(OSSched *sc)
{
if (!g_SndDisabled) {
amgrUpdateFrameCounter(g_Vars.thisframestart240);
}
}
/**
* Handle a retrace (vsync) event.
*
@@ -278,7 +271,6 @@ void schedEndFrame(OSSched *sc)
joy00014238();
sndHandleRetrace();
schedAudioFrame(sc);
schedRenderCrashPeriodically(sc->frameCount);
videoEndFrame();
+1 -2
View File
@@ -114,8 +114,7 @@ void videoEndFrame(void)
if (endTime >= fpsTime) {
char tmp[128];
extern u32 g_AmgrFrame;
snprintf(tmp, sizeof(tmp), "fps %3u frt %lf frm %u afrm %u", framesPerSec, endTime - startTime, frames, g_AmgrFrame / 4);
snprintf(tmp, sizeof(tmp), "fps %3u frt %lf frm %u", framesPerSec, endTime - startTime, frames);
wmAPI->set_window_title(tmp);
framesPerSec = 0;
fpsTime = endTime + 1.0;
-1
View File
@@ -19,7 +19,6 @@ void amgrStopThread(void);
#ifndef PLATFORM_N64
void amgrLock(void);
void amgrUnlock(void);
void amgrUpdateFrameCounter(u32 framecount);
#else
#define amgrLock() do {} while(0)
#define amgrUnlock() do {} while(0)
-7
View File
@@ -417,13 +417,6 @@ void amgrUnlock(void)
sysMutexUnlock(&g_AmgrMutex);
}
void amgrUpdateFrameCounter(u32 newframes)
{
amgrLock();
g_AmgrFrameTarget = newframes;
amgrUnlock();
}
void *amgrThread(void *arg)
{
const f64 frametime = 1000000.0 / (PAL ? 50.0 : 60.0);