Page 1 of 1
Squeezing performance
Posted: Fri Apr 07, 2017 22:49
by greggg
Hey all, I'm running minetest on Raspberry Pi 3 and getting about 30fps, which isn't bad. What are some ways of squeezing more performance out of the game?
Some details: 0.4.15 dev release build; draw distance at 40; turned off all commonly known bells and whistles in the .conf; newest experimental Pi GL drivers; 848x480 resolution, default minetest_game.
Some things I've tried that didn't work: disabling all shaders, splitting into 2-6 threads mapblock_mesh:updateAllFastFaceRows (which uses ~40% of the CPU time).
Some things I'm willing to sacrifice: time of day change, multiplayer (I'm on singleplayer most of the time).
Cheers,
Greg
Re: Squeezing performance
Posted: Tue Apr 11, 2017 03:56
by Sokomine
Turning leaves into blocks you can't see through might also help - provided you havn't done that already. 30 fps at a view range of 40 blocks sounds very good. AFAIK previous experiments with the Pi turned out less well when usiing it as a client. Using the Pi as a server is less problematic. Your reduced resolution might also have helped.
Re: Squeezing performance
Posted: Mon May 29, 2017 02:53
by nightengale
I'm curious how you're getting up to 30 fps. Did you build from source? I am using the backports version and am running full-screen at a much higher resolution, but only getting 10 FPS at best with these options:
enable_3d_clouds = false
enable_particles = false
enable_shaders = false
leaves_style = opaque
viewing_range_nodes_min = 48
viewing_range_nodes_max = 48
Would you minding sharing any other "commonly known bells and whistles" you've tinkered with?
Re: Squeezing performance
Posted: Mon May 29, 2017 15:32
by MineYoshi
Try with this in your Minetest.conf file:
Code: Select all
fullscreen = false
screenW = 300
screenH = 300
vsync = false
video_driver = opengl
enable_clouds = false
enable_3d_clouds = false
new_style_leaves = false
opaque_water = false
new_style_water = false
smooth_lighting = false
enable_fog = false
wanted_fps = 45
fps_max = 50
viewing_range_nodes_min = 15
viewing_range_nodes_max = 16
view_bobbing = 0
desynchronize_mapblock_texture_animation = true
fsaa = false
enable_sound = 0
enable_particles = false
enable_shaders = false
enable_texture_atlas = false
disable_anticheat = false
enable_rollback_recording = false
This should squeeze that performance as a fresh tomato.
Re: Squeezing performance
Posted: Mon May 29, 2017 18:38
by kaadmy
BTW, texture altassing would probably increase performance.
Re: Squeezing performance
Posted: Wed May 31, 2017 03:05
by Wayward_One
Just FYI, texture atlassing was removed a while ago:
https://github.com/minetest/minetest/pull/789