Defold: Defold should pick the best GPU

Created on 10 Sep 2020  路  5Comments  路  Source: defold/defold

We had a user report that our games were not working on their computer

err

The user eventually figured out how to solve this

Fix the problem with your games using the NVIDIA control panel. In the 3D configuration it forces the program to run with the NVIDIA processor. The application used the integrated graphics of the board.

For your record, this device is a DELL XPS i5 M480 2.67 GHz, 8 GB RAM. Video: Geforce GT 420M with Windows 7 Home premium SP1 (old laptop).

Had the same problem with ASUS TUF Gaming FX504 laptop, GPU NVIDIA.

Faerie config

The thing to get this to work right seems to be GLFW_USE_HYBRID_HPG

https://github.com/glfw/glfw/issues/1545

bug engine glfw windows

Most helpful comment

There is this branch building now, and perhaps you can download that exe and let your user test (I don't have two gpu's unfortunately)

All 5 comments

glinfo.txt

Here's the glinfo I asked him to send first.

GLFW_USE_HYBRID_HPG was introduced in GLFW 3. Defold uses GLFW 2 and it doesn't have this flag, but it's very easy to implement - see these lines.

There is this branch building now, and perhaps you can download that exe and let your user test (I don't have two gpu's unfortunately)

I don't either but I can probably get someone with one to test, possibly same guy as original issue. Looking at the code, it looks like it should work!

Was this page helpful?
0 / 5 - 0 ratings