Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If the design of your roguelike limits player vision so they only see their surroundings, then instead of generating the 512 x 512 map in one go, you can improve the performance/memory usage by generating only the blocks around the player.

This would save a lot of initial loading time and could support maps much larger than 512 x 512.



Does this matter if your engine doesn't render stuff outside the viewport?


If your engine doesn't need to render objects outside the viewport, then you don't need to generate those objects until you actually need to render it.


Yeah I got that, but I was just wondering if thats where the performance hit is. Generating the map vs rendering outside visible area.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: