don't init unneeded SDL subsystem
This commit is contained in:
@@ -28,11 +28,15 @@ RageTimer::RageTimer()
|
|||||||
|
|
||||||
void RageTimer::Init()
|
void RageTimer::Init()
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
This is needed for the "timer" system, not the "ticks" system; it often starts
|
||||||
|
a thread, so let's not do it--we don't need it.
|
||||||
static bool SDL_Initialized = false;
|
static bool SDL_Initialized = false;
|
||||||
if(!SDL_Initialized) {
|
if(!SDL_Initialized) {
|
||||||
SDL_InitSubSystem(SDL_INIT_TIMER);
|
SDL_InitSubSystem(SDL_INIT_TIMER);
|
||||||
SDL_Initialized = true;
|
SDL_Initialized = true;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
float RageTimer::GetDeltaTime()
|
float RageTimer::GetDeltaTime()
|
||||||
|
|||||||
Reference in New Issue
Block a user