mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-04 08:02:20 +01:00
Cull the scenery models drawn on their own on the GPU with the instances
This commit is contained in:
@@ -1479,6 +1479,11 @@ global_settings::ConfigParse_gfx( cParser &Parser, std::string_view const Token
|
||||
Parser.getTokens(1);
|
||||
Parser >> gfx_gpucull_sleepers;
|
||||
}
|
||||
else if (Token == "gfx.gpucull.models")
|
||||
{
|
||||
Parser.getTokens(1);
|
||||
Parser >> gfx_gpucull_models;
|
||||
}
|
||||
else if (Token == "gfx.depthprepass.scene")
|
||||
{
|
||||
Parser.getTokens(1);
|
||||
@@ -1985,6 +1990,7 @@ global_settings::export_as_text( std::ostream &Output ) const {
|
||||
export_as_text( Output, "gfx.gpucull.shadows.headlights", gfx_gpucull_shadows_headlights );
|
||||
export_as_text( Output, "gfx.gpucull.shadows.lamps", gfx_gpucull_shadows_lamps );
|
||||
export_as_text( Output, "gfx.gpucull.sleepers", gfx_gpucull_sleepers );
|
||||
export_as_text( Output, "gfx.gpucull.models", gfx_gpucull_models );
|
||||
export_as_text( Output, "gfx.depthprepass.scene", gfx_depthprepass_scene );
|
||||
export_as_text( Output, "gfx.depthprepass.replay", gfx_depthprepass_replay );
|
||||
export_as_text( Output, "gfx.bufferstreaming", gfx_bufferstreaming );
|
||||
|
||||
@@ -305,6 +305,10 @@ struct global_settings {
|
||||
// with gfx_gpucull 1 or 2: the sleepers of the tracks (sleepermodel) of the main view are culled with the instances as well,
|
||||
// and with 1 drawn from the result
|
||||
bool gfx_gpucull_sleepers = true;
|
||||
// with gfx_gpucull 1 or 2: the model instances drawn on their own (with lights, animations or skins of their own, which
|
||||
// keep them out of the instanced draws) are culled with the instances as well, each one a group of its own, in every pass
|
||||
// culled on the gpu, and with 1 drawn from the result. models with billboards stay on the cpu
|
||||
bool gfx_gpucull_models = true;
|
||||
// (opengl 4.6) the depth of the whole opaque scene of the main view is drawn before its colour, the instances included
|
||||
bool gfx_depthprepass_scene = false;
|
||||
// (opengl 4.6) the depth pass of the scene (gfx_depthprepass_scene, or the one of the contact shadows) walks the scene for
|
||||
|
||||
Reference in New Issue
Block a user