mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-04 09:44:16 +00:00
[client] reduce weight of FPS limiter feedback
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user