Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Oct 15, 2024
1 parent 38d9e20 commit 8b4641e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/client/clientmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
// Mesh animation
if (pass == scene::ESNRP_SOLID) {
// Pretty random but this should work somewhat nicely
bool faraway = d >= BS * 50;
bool faraway = false; //d >= BS * 50;
if (block_mesh->isAnimationForced() || !faraway ||
mesh_animate_count < (m_control.range_all ? 200 : 50)) {

Expand Down
6 changes: 3 additions & 3 deletions src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4550,8 +4550,8 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
if (clouds)
updateClouds(dtime);

thread_local static const auto farmesh_range = g_settings->getS32("farmesh");
if (farmesh) {
thread_local static const auto farmesh_range = g_settings->getS32("farmesh");
thread_local static uint8_t processed{};
thread_local static u64 next_run_time{};
if (processed || porting::getTimeMs() > next_run_time) {
Expand Down Expand Up @@ -4593,8 +4593,8 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
driver->setFog(
sky->getBgColor(),
video::EFT_FOG_LINEAR,
100000 * BS,
110000 * BS,
std::max(farmesh_range, 100000) * BS,
(std::max(farmesh_range, 100000)+10000) * BS,
0.01f,
false, // pixel fog
false // range fog
Expand Down

0 comments on commit 8b4641e

Please sign in to comment.