aboutsummaryrefslogtreecommitdiff
path: root/src/client/clientmap.cpp
AgeCommit message (Collapse)Author
2021-10-01Improvements to colored shadows (#11516)x2048
2021-09-27Order drawlist by distance to the camera when rendering (#11651)x2048
2021-07-25Distribute shadow map update over multiple frames to reduce stutter (#11422)x2048
Reduces stutter and freezes when playing. * Maintains double SM and SM Color textures * Light frustum update triggers incremental generation of shadow map into secondary 'future' textures. * Every incremental update renders a portion of the shadow draw list (split equally). * After defined number of frames (currently, 4), 'future' and 'current' textures are swapped, and DirectionalLight 'commits' the new frustum to use when rendering shadows on screen. Co-authored-by: sfan5 <sfan5@live.de>
2021-06-06Shadow mapping render pass (#11244)Liso
Co-authored-by: x2048 <codeforsmile@gmail.com>
2021-05-03refacto: protect some RenderingEngine::get_scene_managerLoic Blot
* protect it from Camera, Sky, ClientMap object calls * rename Game::sky to Game::m_sky
2021-04-05Reserve vectors before pushing and other code quality changes (#11161)sfan5
2021-02-26Keep mapblocks in memory if they're in range (#10714)hecks
Some other minor parts of clientmap.cpp have been cleaned up along the way
2020-12-23Minor profiler fixes.Lars
2020-12-05Implement mapblock camera offset correctly (#10702)hecks
Implement mapblock camera offset correctly - reduce client jitter Co-authored-by: hecktest <>
2020-11-25Fix camera panning glitches (partially revert 10489.)Lars
2020-10-19Minor clientmap improvements.Lars
- Avoid calculating isBlockInSight for blocks without meshes. - Add metric for how many blocks the client has currently loaded. - Make some variables constant.
2020-10-13Avoid drawing invisible blocks on the client.Lars
2020-10-05Remove unused functions reported by cppcheck (#10463)SmallJoker
Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
2019-08-23Occlusion: Check for light_propagates and do mapblock bounds checksSmallJoker
2019-08-23Occlusion: Begin cleanupSmallJoker
2019-08-13Fix unnecessary exception use in Map::getSectorXXX (#8792)Jozef Behran
The Map::getSectorNoGenerate throws an exception but no other code is really dependent on that. Fix the odd instance of misuse in ClientMap::emergeSector and remove the exception throwing version of the method along with the "NoEx" suffixes in the names of these methods.
2019-08-13Better F6 profiler (#8750)SmallJoker
Update the profiler names to make more sense of what they actually represent Move the profiler code from header to its source file Use monospace font to align lines Format the statistics line to align better with surrounding values Refresh the profiler each 3 seconds (roughly)
2019-08-10Merge pull request #8776 from osjc/FixGetNodeJozef Behran
Finish getNode cleanup
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories