1 decade ago by Joncom
As games become more complicated they perform more slowly. It seems to me a big part of the slow-down occurs from a large amount of checks which take place in various entity
Does JavaScript continuously loop through all events checking if the event has fired?
Or does the event itself inform JavaScript when (and only when) it requires attention?
If the former, then events seem no more efficient than Impact already is. If the latter, then much of the code I have could be optimized to use less resources in constant
It seems like a lot of work to convert what code I have just to test out this theory, so I figured I'd ask around first.
update
calls. Which begs the question:Does JavaScript continuously loop through all events checking if the event has fired?
Or does the event itself inform JavaScript when (and only when) it requires attention?
If the former, then events seem no more efficient than Impact already is. If the latter, then much of the code I have could be optimized to use less resources in constant
update
calls, boosting performance.It seems like a lot of work to convert what code I have just to test out this theory, so I figured I'd ask around first.