Guest User

Workaround for Minecraft on Linux with Official ATI Drivers

a guest
Apr 29th, 2011
2,484
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Workaround for Minecraft on Linux with Official ATI Drivers
  2.  
  3. Issue: Minecraft crashes with the ATI official proprietary drivers on ubuntu (11.04, 10.10, and maybe earlier also)
  4.  
  5. The open source drivers work, but performance is bad. Also, the open source drivers do not work for some programs (X-plane flight sim, etc.) so the proprietary ones may be required. Switching back and forth is not an acceptable solution.
  6.  
  7. I found that by removing the proprietary driver, but not rebooting, caused it to run in indirect rendering mode. This caused poor performance in other applications, but allowed Minecraft to run on the proprietary driver. Even when running in the indirect rendering mode, Minecraft ran about 4 times faster than the open source driver.
  8.  
  9. --------------------------------------------------------------------------------------------------
  10. Ubuntu 11.04
  11. i5-2400
  12. 4 GB RAM
  13. ATI 5770
  14.  
  15. open source driver at 1080p, far view distance, no other fancy settings: 15-20 fps
  16. official driver at 1080p, far view distance, fancy graphics, shading: 60-70 fps
  17. --------------------------------------------------------------------------------------------------
  18.  
  19. Adding "LIBGL_ALWAYS_INDIRECT=1" forces it to use indirect rendering just for this application. Indirect rendering isn't the fastest, but it is still several times faster than the open source drivers.
  20.  
  21. If you want to place this in a (classic) Gnome launcher, then you have to add "env" to "LIBGL_ALWAYS_INDIRECT=1". If using this directly on the command line, then the "env" at the beginning is optional.
  22.  
  23. env LIBGL_ALWAYS_INDIRECT=1 java -cp /home/username/Applications/Minecraft/minecraft.jar net.minecraft.LauncherFrame
  24.  
  25. Or with the memory parameters:
  26. env LIBGL_ALWAYS_INDIRECT=1 java -Xmx1024M -Xms512M -cp /home/username/Applications/Minecraft/minecraft.jar net.minecraft.LauncherFrame
RAW Paste Data