partey_workadventure/front/src
David Négrier 0c5e5ef578 Skip "render" if nothing changed on screen
For each requested animation frame (RAF) in Phaser, Phaser calls the "update" method, then the "render" method of each scenes.
The "render" method takes some time (and energy) to perform the rendering.

The fact is we probably don't need to call "render" if nothing changed on the screen (which happens most of the frames in a typical WorkAdventure game).

This commit is therefore overloading the "Game" class of Phaser to add a "dirty" flag.

Scenes can now add a "isDirty()" method. If all displayed scenes are pristine (not dirty), Phaser will skip rendering the frame altogether.

This saves "a lot" of energy, resulting in laptops that are not overheating when using WorkAdventure \o/
2021-05-06 15:36:45 +02:00
..
Administration [Breaking change] UPLOADER_URL and ADMIN_URL are now true URLs (and not only host name) and API_URL is replaced by PUSHER_URL 2021-03-31 16:00:14 +02:00
Api Hiding iframe in prod 2021-03-28 17:21:10 +02:00
Connexion Merge pull request #893 from workadventure-xce/fix/first_login 2021-04-13 15:15:32 +02:00
Enum FEATURE: added the env variable MAX_PER_GROUP 2021-04-15 15:50:51 +02:00
Exception Create exception error 2020-12-18 14:30:46 +01:00
Logger Fixing use const instead of let 2020-06-19 14:30:34 +02:00
Messages Migrating messages locally into back and front 2020-09-24 11:16:08 +02:00
Network rewrote the login workflow 2020-09-25 19:23:33 +02:00
Phaser Skip "render" if nothing changed on screen 2021-05-06 15:36:45 +02:00
Url Adding an "alone" mode 2021-03-30 16:08:49 +02:00
WebRtc Bump Phaser version 2021-04-21 10:35:38 +02:00
iframe_api.ts Popup openWebSite 2021-03-25 17:12:53 +01:00
index.ts Skip "render" if nothing changed on screen 2021-05-06 15:36:45 +02:00
types.ts Make movement speed depend on joystick force 2021-04-13 02:00:05 +02:00