mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] reduce weight of FPS limiter feedback
This commit is contained in:
parent
5de9a8dce6
commit
62e67c345c
@ -66,7 +66,7 @@ struct AppState
|
||||
int shmFD;
|
||||
struct KVMFRHeader * shm;
|
||||
unsigned int shmSize;
|
||||
unsigned int fpsSleep;
|
||||
int64_t fpsSleep;
|
||||
};
|
||||
|
||||
typedef struct RenderOpts
|
||||
@ -199,7 +199,9 @@ int renderThread(void * unused)
|
||||
{
|
||||
usleep(state.fpsSleep - total);
|
||||
int64_t delta = (1000000 / params.fpsLimit) - (microtime() - start);
|
||||
state.fpsSleep += delta;
|
||||
state.fpsSleep += delta / 16;
|
||||
if (state.fpsSleep < 0)
|
||||
state.fpsSleep = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user