YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

In-Game: time_source_start() execution time increases with additional time sources #1936

Open iampremo opened 1 year ago

iampremo commented 1 year ago

Description

When a user has a lot of time sources running in their project at once, the time_source_start() function takes longer to execute than if there are fewer time sources. The more time sources present, the longer the execution time for the function. If a new time source is started, this time increases even more. A user reports that when there are a few thousand sources, this can even lead to freezes.

https://drive.google.com/file/d/1qyTpzSdHsHW8zpkTsXFPxA6UkvTxDrw6/view?usp=sharing

Expected Change

It is expected that time source functions will take the same time to execute no matter the number of other time sources present and running.

Steps To Reproduce

  1. Open GameMaker and import attached project.
  2. Run game.
  3. Press Space to start a time source.
  4. Observe time increasing.
  5. Press Space 5 more times to start more time sources.
  6. Observe that time increases exponentially.

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

Jun 23

Compiler Log File

Sample .yyz File

caitlinrmcintyre commented 1 year ago

Still seems to be an issue in IDE v2023.8.2.107 Runtime v2023.8.2.152