Use the arrow keys to move around. To prove that this works better, it now renders 100,000 objects with no lag. In the last one, it can barely render 2000. UPDATE: Lessened lag near the end of the scrolling blocks, used another method for the surrounding Y list, and reentered list data.
This engine is improved. How does it work? Well, using some math, it determines the object in the middle of the screen. Then, it gets the surrounding objects. Instead of looping the whole list, it only processes the tiles near you. It is not recommended to use this, as it isn't user friendly. However, if you do, give credit. Thanks.