Runelite: Add support for Linux-based systems to GPU plugin

Created on 15 Nov 2018  路  1Comment  路  Source: runelite/runelite

Currently GPU plugin do not works on Linux systems. The problem is that even after adding proper JOGL natives for Linux, the input on Linux is broken (confirmed by 2 separate people trying to run GPU plugin on Linux). Possible solution is switch from JOGL to LWJGL2 what works just fine or to LWJGL3 (untested, we would need to use their experimental JAWT api what they do not have documented very well).

EDIT: Problem with LWJGL2 is that it do not propagates any input to canvas, so it needs to be proxies. JOGL simply grabs all input and does nothing with it on Linux.

feature-request gpu

Most helpful comment

So after some research and help of @Whitehooder (no clue what is his name on GitHub), the solution for Linux will be: replace current JAWTWindow binding with NEWT window (basically native GL window) reparented on top of JAWTWindow and then forward events from JAWTWindow to game canvas. I updated #6503 to use that approach and it is almost working, with small issues (and input proxies are still WIP, so only mouse is working). Looks like this solution will also solve issue on how to create window on Mac (issue #6482), so only thing left there will be convert compute shaders to OpenCL.

>All comments

So after some research and help of @Whitehooder (no clue what is his name on GitHub), the solution for Linux will be: replace current JAWTWindow binding with NEWT window (basically native GL window) reparented on top of JAWTWindow and then forward events from JAWTWindow to game canvas. I updated #6503 to use that approach and it is almost working, with small issues (and input proxies are still WIP, so only mouse is working). Looks like this solution will also solve issue on how to create window on Mac (issue #6482), so only thing left there will be convert compute shaders to OpenCL.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gamer1120 picture Gamer1120  路  3Comments

therealmattshady picture therealmattshady  路  3Comments

Jamser20 picture Jamser20  路  3Comments

devLotto picture devLotto  路  3Comments

SomeZer0 picture SomeZer0  路  3Comments