Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
e1842ed3
Commit
e1842ed3
authored
8 years ago
by
lhofhansl
Committed by
kwolekr
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Optionally disable optimization that causes underwater and cave rendering glitches. (#4686)
parent
595932a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
builtin/settingtypes.txt
+7
-0
7 additions, 0 deletions
builtin/settingtypes.txt
src/clientiface.cpp
+3
-1
3 additions, 1 deletion
src/clientiface.cpp
src/defaultsettings.cpp
+1
-0
1 addition, 0 deletions
src/defaultsettings.cpp
with
11 additions
and
1 deletion
builtin/settingtypes.txt
+
7
−
0
View file @
e1842ed3
...
...
@@ -849,6 +849,13 @@ liquid_queue_purge_time (Liquid queue purge time) int 0
# Liquid update interval in seconds.
liquid_update (Liquid update tick) float 1.0
# At this distance the server will aggressively optimize which blocks are sent to clients.
# Small values potentially improve performance a lot, at the expense of visible rendering glitches.
# (some blocks will not be rendered under water and in caves, as well as sometimes on land)
# Setting this to a value greater than max_block_send_distance disables this optimization.
# Stated in mapblocks (16 nodes)
block_send_optimize_distance (block send optimize distance) int 4 2
[*Mapgen]
# Name of map generator to be used when creating a new world.
...
...
This diff is collapsed.
Click to expand it.
src/clientiface.cpp
+
3
−
1
View file @
e1842ed3
...
...
@@ -174,6 +174,8 @@ void RemoteClient::GetNextBlocks (
s32
new_nearest_unsent_d
=
-
1
;
const
s16
full_d_max
=
g_settings
->
getS16
(
"max_block_send_distance"
);
const
s16
d_opt
=
g_settings
->
getS16
(
"block_send_optimize_distance"
);
s16
d_max
=
full_d_max
;
s16
d_max_gen
=
g_settings
->
getS16
(
"max_block_generate_distance"
);
...
...
@@ -300,7 +302,7 @@ void RemoteClient::GetNextBlocks (
Block is near ground level if night-time mesh
differs from day-time mesh.
*/
if
(
d
>=
4
)
if
(
d
>=
d_opt
)
{
if
(
block
->
getDayNightDiff
()
==
false
)
continue
;
...
...
This diff is collapsed.
Click to expand it.
src/defaultsettings.cpp
+
1
−
0
View file @
e1842ed3
...
...
@@ -279,6 +279,7 @@ void set_default_settings(Settings *settings)
settings
->
setDefault
(
"max_simultaneous_block_sends_server_total"
,
"40"
);
settings
->
setDefault
(
"max_block_send_distance"
,
"9"
);
settings
->
setDefault
(
"max_block_generate_distance"
,
"7"
);
settings
->
setDefault
(
"block_send_optimize_distance"
,
"4"
);
settings
->
setDefault
(
"max_clearobjects_extra_loaded_blocks"
,
"4096"
);
settings
->
setDefault
(
"time_send_interval"
,
"5"
);
settings
->
setDefault
(
"time_speed"
,
"72"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment