Tag Info

Hot answers tagged


One option would be to load lighting information only as it appears on the screen. You would get one performance hit at the beginning as the full screen lighting is calculated, but from there you could cache the information and (as you mentioned) update it only when a light is flagged as modified. As you move across the world, you could calculate a short ...


Divide your game world into rectangular chunks which are about half the size of the players screen. Keep track of which players are in which chunk. You can easily do that in the code which handles player movement. When a tile changes, inform only those players which are in this or in an adjacent chunk. When a player moves to a new chunk, give them an ...

Only top voted, non community-wiki answers of a minimum length are eligible