Commit Graph

730 Commits

Author SHA1 Message Date
James Seibel 608028a09f Refactor and Rename to improve readability in the LodRenderer 2021-02-13 19:52:25 -06:00
James Seibel 9d3cf90363 Improve multithreading buffer building and improve framerate overall 2021-02-13 19:16:53 -06:00
James Seibel 27678b90a3 Remove an unneeded line of code 2021-02-13 17:29:50 -06:00
James Seibel 61d33f6688 Improve how old ByteBuffers are cleared 2021-02-13 17:19:06 -06:00
James Seibel 4237971f8d Fix an offset issue and remove fog related TODO 2021-02-13 16:56:06 -06:00
James Seibel 2bc7b4d1dc Fix debug coloring not working 2021-02-13 16:39:07 -06:00
James Seibel 7bc8b87935 Update version number for LodChunk 2021-02-13 16:29:17 -06:00
James Seibel bf86ca3bd7 Improve color and height generation for water 2021-02-13 16:28:47 -06:00
James Seibel c48fb2f040 Add a comment to LodDimension 2021-02-13 15:56:03 -06:00
James Seibel 6b4b053730 Improve generateLodChunk organization and fix a typo 2021-02-13 15:55:42 -06:00
James Seibel 1c3da8e244 Clean up LOD generation threads stopping unexpectedly
This doesn't fix the problem, it just prevents the threads from causing
trouble in the main thread.
2021-02-13 14:13:57 -06:00
James Seibel a051e2ee8f Remove debug line 2021-02-13 13:17:58 -06:00
James Seibel 6cdab282b3 Improve the lighting calculation 2021-02-13 13:17:24 -06:00
James Seibel de67a80809 Minorly improve spacing 2021-02-13 10:05:53 -06:00
James Seibel ce1bfde49e Improve rendering of empty or thin LODs 2021-02-13 10:05:05 -06:00
James Seibel ffae35eba0 Add rudamentary lighting, and have the LODs stay put relative to the camera 2021-02-12 15:42:23 -06:00
James Seibel 4b33dd6a1a Improve performance
The LODs are only regenerated when the player moves.
The number of threads building the LOD buffers were reduced to 1, since any more than 1 hurt performance.
2021-02-12 15:41:19 -06:00
James Seibel 5ed8127f0e Make sure enough LOD regions are stored to cover the whole area 2021-02-11 23:04:08 -06:00
James Seibel 562b7f2b65 Add true multithreading to the buffer building 2021-02-10 22:16:44 -06:00
James Seibel df7695819b Fix a bug where resizing the view distance would break the LOD buffers
Some would keep their old data and render things that shouldn't exist.
2021-02-10 16:37:39 -06:00
James Seibel 23e5100b74 Give the BuildBufferThread its own class 2021-02-10 16:03:58 -06:00
James Seibel 81b1980670 Add the first attempt at multithreading the buffer building 2021-02-10 15:29:58 -06:00
James Seibel d5b6d21a53 Clean up a bunch of small things 2021-02-08 22:18:08 -06:00
James Seibel 35b3d77ae7 Rename OfConfig to ReflectionHandler 2021-02-08 14:44:17 -06:00
James Seibel 741aa435b5 Fix rendering the wrong LOD dimension when changing dimension 2021-02-08 14:43:02 -06:00
James Seibel 79caa72ea9 Add a TODO 2021-02-08 10:58:37 -06:00
James Seibel a02e5ba275 Have the LODs change brightness based on the time of day 2021-02-08 10:49:04 -06:00
James Seibel d3107303dd Revert the perspective matrix after drawing is completed. 2021-02-08 10:11:02 -06:00
James Seibel 9cb9a6082c Add method comments 2021-02-08 10:08:01 -06:00
James Seibel dbd5cc50e5 Change the package backsun.lod... to com.backsun.lod... 2021-02-08 09:59:46 -06:00