PorkStudios / FarPlaneTwo

Level-of-Detail renderer in Minecraft. Allows for render distances of millions of blocks. (Cubic Chunks-compatible) (WIP)
https://daporkchop.net/
Other
1.45k stars 48 forks source link

F3 Feedback for Lod Generation Progress #109

Open sisby-folk opened 3 years ago

sisby-folk commented 3 years ago

It would be helpful if there was a debug line within F3 that indicated how complete LOD generation/loading was at any one time. A lot of issues are reported partially because the LOD simply hasn't had enough time to load, and it'd be easier to understand the performance impact of the mod if it was clear whether the LOD is loaded or still loading.

I won't suggest a specific format, as reasonably it should be representative of the internals, but some kind of FP2: LOADED/TO-BE-LOADED format would be good, in whatever units are appropriate

DaMatrix commented 3 years ago

i've added something like that on the dev/improve-tracking-parallelism branch when running in debug mode (requires adding -Dfp2.debug=true to your JVM arguments). the first line under FarPlaneTwo (Server): is formatted as follows:

<tracked tile count for all players>G <total tile count>T <tracked tile count>L <loading-in-progress tile count>P <queued tile count>Q

once P and Q reach zero, FP2 terrain is done loading.

however, i wasn't planning on making this work outside of debug mode, since there's a non-negligible performance overhead to keeping track of these statistics. i'll keep this issue open, and consider possibly making this a standard feature once the mod's more mature.