Skip to content

Commit fa03e3c

Browse files
committed
display sync for web simulator fixed
1 parent 99fa5e8 commit fa03e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eez/modules/mcu/simulator/display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ void sync() {
313313
uint32_t tickCount = millis();
314314
int32_t diff = 1000 / 60 - (tickCount - g_lastTickCount);
315315
g_lastTickCount = tickCount;
316-
if (diff > 0) {
316+
if (diff > 0 && diff < 1000 / 60) {
317317
SDL_Delay(diff);
318318
}
319319

0 commit comments

Comments
 (0)