forked from Ports/perfect_dark
port: clean up previous commit
This commit is contained in:
1 parent
4c552a42f2
commit
ada20c526a
4 files changed
+1
-18
No files matched your search
@@ -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
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user