Editing Wayland latency tuning
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 19: | Line 19: | ||
Tuning the latency for Looking Glass follows a very similar process: | Tuning the latency for Looking Glass follows a very similar process: | ||
− | + | 1. Close the Looking Glass client. | |
− | + | 2. Run <code>swaymsg 'for_window [app_id="looking-glass-client"] max_render_time 1'</code>. | |
− | + | 3. Run the Looking Glass client with the <code>win:showFPS win:jitRender</code> option. If you have multiple monitors, you want to move to window to the monitor with the highest resolution. | |
− | + | 4. If the FPS value displayed is lower than the screen refresh rate, close the client and restart from step 2, but increment the value of <code>max_render_time</code> by 1. | |
− | + | 5. Once this is done, open up your sway config file (usually <code>~/.config/sway/config</code>), and add the line <code>for_window [app_id="looking-glass-client"] max_render_time t</code>, with <code>t</code> replaced by the optimal value obtained previously. |