Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Sep 10, 2024
1 parent 9d0af27 commit 997ec65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/client/clientmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,7 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
auto is_frustum_culled = m_client->getCamera()->getFrustumCuller();

const MeshGrid mesh_grid = m_client->getMeshGrid();
draw_order.reserve(m_drawlist.size());
for (auto &i : m_drawlist) {
v3s16 block_pos = i.first;
auto block = i.second;
Expand Down
4 changes: 2 additions & 2 deletions src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4766,9 +4766,9 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
if (!runData.headless_optimize)
driver->endScene();

/*
if (m_game_ui->m_flags.show_profiler_graph)
stats->drawtime = tt_draw.stop(true);
*/

g_profiler->graphAdd("Draw scene [us]", stats->drawtime);
g_profiler->avg("Game::updateFrame(): update frame [ms]", tt_update.stop(true));
}
Expand Down
4 changes: 2 additions & 2 deletions src/defaultsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ void fm_set_default_settings(Settings *settings) {
settings->setDefault("cloud_height", "300"); // "120"
settings->setDefault("enable_zoom_cinematic", "true");
settings->setDefault("wanted_fps", slow ? "25" : "30");
settings->setDefault("lodmesh", slow ? "2" : "4");
settings->setDefault("lodmesh", slow ? "4" : "6");
settings->setDefault("farmesh", slow ? "3000" : std::to_string(FARMESH_LIMIT*2));
settings->setDefault("farmesh_quality", slow ? "0" : "0");
settings->setDefault("farmesh_quality", slow ? "0" : "2");
settings->setDefault("farmesh_stable", "0");
settings->setDefault("headless_optimize", "false");
//settings->setDefault("node_highlighting", "halo");
Expand Down

0 comments on commit 997ec65

Please sign in to comment.