Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

FPS enhancer for Game Maker


Recommended Posts

Tiles aren't much a problem as long as you design your levels with large enough tiles. However, object deactivation really is, and there are better ways to manage that. For example, some time ago, I made a little test that built a list of objects on a quadlist structure and activated/deactivated them by instance creation/destroy. The FPS boost got from 200 to 1700 in a scene with ~10.000 objects :)

The technique consists on splitting the room in grid/quadrant sections and generate a list of objects for each grid cell, containing the x, y and type information of the objects. After this, you only need to create the objects that are within the current visible cell and destroy the objects that are outside. This way, GM probably won't have to iterate through so many objects thus gaining a great perfomance boost.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...