Advertisement
Guest User

How to disable vsync on Minecraft [linux>Mesa]

a guest
Jan 28th, 2020
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. UPDATE: Some shaderpacks don't seem to be working with this workaround. I'll post an updated version of this guide once I find a fix for this.
  2.  
  3. NOTE: As of Mesa 18.3.3, you no longer need the MESA_GL and MESA_GLSL version overrides.
  4.  
  5. Script:
  6. #!/bin/bash
  7.  
  8. export force_glsl_extensions_warn=true
  9. export mesa_glthread=true
  10. export vblank_mode=0
  11.  
  12. For Mesa versions older than 18.3.3:
  13.  
  14. Script:
  15. #!/bin/bash
  16.  
  17. export MESA_GL_VERSION_OVERRIDE=4.5COMPAT
  18. export MESA_GLSL_VERSION_OVERRIDE=450
  19. export force_glsl_extensions_warn=true
  20. export allow_higher_compat_version=true
  21. export mesa_glthread=true
  22. export vblank_mode=0
  23.  
  24. To execute this script automatically on startx, edit .xinitrc and add the line . ./[scriptname].sh
  25.  
  26. For about a year, I've tried and failed to properly run SEUS shaders in Minecraft using Mesa 3D. Eventually, I found a CEMU script that had environment variables that allowed me to override the default version of OpenGL + GLSL, which led to me making this lazily recorded/edited tutorial on how to properly run SEUS shaders on Linux using Mesa 3D. Note that these environment variables will work for any OpenGL game/application that does not request the core profile from Mesa.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement