Update #52 - Fixed various issues with the client

This commit is contained in:
lax1dude
2025-06-15 21:43:43 -07:00
parent 325a6826bf
commit f3281c037f
94 changed files with 882 additions and 506 deletions

View File

@ -617,15 +617,19 @@ async function initPlatformInput(inputImports) {
/**
* @param {number} fpsLimit
* @param {number} vsync
* @param {number} finish
* @return {Promise}
*/
function updatePlatformAndSleepImpl(fpsLimit, vsync) {
function updatePlatformAndSleepImpl(fpsLimit, vsync, finish) {
reportWindowSize();
if((typeof document.visibilityState !== "string") || (document.visibilityState === "visible")) {
if(vsyncSupport && vsync) {
manualSyncTimer = 0;
return asyncRequestAnimationFrame();
}else {
if(finish) {
webglContext.finish();
}
if(fpsLimit <= 0) {
manualSyncTimer = 0;
return swapDelayImpl();