optimization and some fixes v4
This commit is contained in:
@@ -440,7 +440,7 @@ function render(currentTime) {
|
|||||||
const now = currentTime || performance.now();
|
const now = currentTime || performance.now();
|
||||||
|
|
||||||
// Адаптивный FPS
|
// Адаптивный FPS
|
||||||
const fpsLimit = isMobile ? 33 : 16;
|
const fpsLimit = 16;
|
||||||
if (now - lastDrawTime < fpsLimit) return;
|
if (now - lastDrawTime < fpsLimit) return;
|
||||||
lastDrawTime = now;
|
lastDrawTime = now;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user