Today (and in the past few days) I have been working on the chunk system! Good news: I made the chunks and the grids that store blocks! Bad news... major FPS problems.
Today, I focused on laying the groundwork for this system and solving the initial quirks. Blocks will be handled in chunks, and chunks will load and draw grids filled with block data. Chunks are also easily savable allowing for the elimination of the segment 'World saving'. All blocks will be drawn through one instance rather than each block being its own instance, which significantly improves CPU usage and overall performance.
The groundwork is completed and the chunks are also completed. However, I'm getting MAJOR lag spikes when loading a new chunk. In fact. the frames drop by about 20% given each new chunk loaded. It's weird, because chunks are removed from memory once they're out of the view. Not sure what's going on here, but I'm going to solve it!
Until next time!
February's task is to improve the combat system and create a system for enemies and their AI.
The author of the blog is Niften, or Sour Apple. He posts weekly, usually on the weekends on Saturday.