Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
almost constant, log or n?
Develop games in your browser. Powerful, performant & highly capable.
I believe its object index with recycling.
But do all the objects in the game are continuous in memory or is there fragmentation?, and if so, how much? Which are the basic rules for dividing the data? In which scenarios we don't want to abuse "get by uid"?
The scenario where you are constantly creating new objects and instances.
Its advised not to use it unless you can deal with the timing well.
Think of it like you would a stack.
"Get by UID" is specially coded for efficiency. It essentially does a single Map lookup, which I think typically works in constant time (O(1)). So it won't slow down even if you have thousands of objects.