Finally added frustum culling and 100'000 randomly positioned meshes on top of the terrain. There's still no gameplay, but walking around the hills feels good

#SoloDev #GameDev #IndieDev #CustomEngine #SoftwareRenderer

Iterating the 100k meshes to see if they fall inside the view frustum is now taking the majority of the frame time...I guess I'm going to need some spatial acceleration structure next. Having mostly a top-down view I guess using a simple 2D grid structure should be enough? hmm🤔
@cominu checking 100k spheres/boxes against a frustum should be "fairly fast" on modern machines. is your target something older?
@aras I was writing you a nice explanation about the slowness and I opened Tracy to do a quick check.. (╯°□°)╯︵ ┻━┻) the problem is actually somewhere else with a big slow function. Thanks for being my "Rubber Duck" 🦆