Commit c6a6876
committed
chunk rendering: disable level of details
So, the idea was/is great and when just standing or barely moving this makes a performance difference (less work on cpu and gpu), but the constant remeshing kills performance ultimately.
There might be various ways to solve this (or combined):
- Async GPU mesh loading: https://gitlab.bixilon.de/bixilon/minosoft/-/merge_requests/121
- Way faster meshing on the CPU
- way less different types of LOD (just level 1/2 maybe 3)
- Increase effect (merge multiple blocks; reduce the number of vertices to a minimum; don't mesh every block)
- maybe more clever ways?
- mesh twice: lod and full (just swap them; not remesh then or so)
- merge similaur distances to not cause multiple remeshings when crossing borders
This commit disables them for now until something is worked out.1 parent 4f373ef commit c6a6876
File tree
2 files changed
+7
-2
lines changed- src/main/java/de/bixilon/minosoft/gui/rendering/chunk
- mesher
- mesh/details
2 files changed
+7
-2
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
0 commit comments