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.
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
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