Skip to content

Commit

Permalink
cvbnm,
Browse files Browse the repository at this point in the history
  • Loading branch information
ForserX authored and acidicMercury8 committed Aug 15, 2024
1 parent 78a8e28 commit 5f7a6a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/xrEngine/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,18 @@ void mtGameThread(void* ptr)
{
CRenderDevice* pDevice = (CRenderDevice*)ptr;

while (!quiting)
while (true)
{
GameThreadSyncEnd = false;

pDevice->on_idle();

GameThreadSyncEnd = true;

if (quiting)
{
break;
}
}
}

Expand Down Expand Up @@ -370,7 +375,7 @@ void CRenderDevice::on_idle ()
void CRenderDevice::message_loop()
{
#ifndef _EDITOR
while (!quiting) {
while (true) {
SDL_Event event;
while (SDL_PollEvent(&event))
{
Expand Down

0 comments on commit 5f7a6a4

Please sign in to comment.