0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-23 14:25:10 +00:00

Fixed issue with screen vector run

This commit is contained in:
Devine Lu Linvega 2023-01-27 09:36:04 -08:00
parent 63108c178a
commit b894ba4c57

View file

@ -433,11 +433,11 @@ static int
run(Uxn *u)
{
Uint64 now = SDL_GetPerformanceCounter(), frame_end = now, frame_interval = SDL_GetPerformanceFrequency() / 60;
for(;!u->dev[0x0f]; now = SDL_GetPerformanceCounter()) {
for(; !u->dev[0x0f]; now = SDL_GetPerformanceCounter()) {
exec_deadline = now + deadline_interval;
if(!handle_events(u))
return 0;
if (((Sint64)(frame_end - SDL_GetPerformanceCounter())) >= 0) {
if(((Sint64)(frame_end - SDL_GetPerformanceCounter())) <= 0) {
frame_end = now + frame_interval;
uxn_eval(u, GETVEC(&u->dev[0x20]));
}