flashflashrevolution / rCubed

Official Flash Flash Revolution game engine.
https://www.flashflashrevolution.com
GNU Affero General Public License v3.0
30 stars 17 forks source link

Refactor Alerts #272

Closed Psycast closed 3 years ago

Psycast commented 3 years ago

This should fix lag with Alerts during gameplay due to rapid creation/destruction of textfields, which has been mitigated.

Fixes issue #269.

Zageron commented 3 years ago
  • Use a single Alert Display instead of creating a new one each time.
  • Make it into a static class so using a reference through GlobalVariables isn't needed.
  • Only add/remove event listeners when needed instead of between every alert.

This should fix lag with Alerts during gameplay due to rapid creation/destruction of textfields, which has been mitigated.

Fixes issue #269.

When were alerts happening during gameplay?

Psycast commented 3 years ago

When were alerts happening during gameplay?

Multiplayer has them for multiple things: