starandserpent / java-TerraServer

Terra - Voxel octree of chunks, made for Rituals of the old
MIT License
17 stars 2 forks source link

Make terra optimized #40

Closed Pawlost closed 5 years ago

Pawlost commented 5 years ago

GOAL: Pilvinen:

Memory Usage 1) We want a large view distance, ideally that would be 40 kilometers or more. This cannot be achieved without faking it, but nonetheless. 2) 40 km might be a far stretch, therefore 10 km would be a better suited goal. 3) Failing at that we want to have at least 2 km of view distance. This is still pretty good as far as games of this type generally go. Still, it might be difficult to achieve. 4) We need minimum of 1 km view distance to be really viable. Anything below that would be a failure affecting game play and we'd need to reconsider our options.

FPS FPS target should be at 60 or more matching most common monitor refresh rate for a fluent and responsive game play experience.

30 FPS build RAM: 8 GB GPU: gtx 750 ti with 2 gb of VRAM CPU: i7 2600s

Startup The game starting should not depend on whether or not the terrain is generated.

Pawlost commented 5 years ago

Test for 1000 chunks OLD 22.4. 2019 startup: 50 s fps: 8 - 10 memory: 1 478 MB

NEW 22.4. 2019 startup: 2 min 20 s fps: 60 - 80 memory: 1 400 MB

Pawlost commented 5 years ago

5.5. 2019 Without Weltschmerz startup: 1 min 35 s fps: 60 - 80 memory: 436 MB

With Wetschmerz startup: 56 s fps: 60 - 80 memory: 494 MB

Pilvinen commented 5 years ago

We need better tests. Things that I want to know:

Pawlost commented 5 years ago

22.5. 2019 Without Weltschmerz startup: 1 min 32 s fps: 60 - 80 memory: 459 MB

With Weltschmerz: startup: 44 s fps: 60 - 80 Memory: 508 MB

Pawlost commented 5 years ago

This issue was moved to our private wiki as "Optimization"