JonahCoffelt / MinecraftPythonEdition

Minecraft clone made with Python + ModernGL
9 stars 1 forks source link

Cudart Package Issue with AMD hardware #2

Open theolaos opened 3 weeks ago

theolaos commented 3 weeks ago

I only have AMD hardware with linux. I tried to install cudart with pip and it spat out errors.

Though the game still runs (under AMD hardware) even after I comment out in the main.py file the import cudart.

Is there a possibility that this:

import cudart

Could change into this?

try: 
     import cudart
except ModuleNotFoundError:
    pass
JonahCoffelt commented 3 weeks ago

I haven't tested this on AMD yet, so thank you for the post. Cudart helps speed up the game on NVIDIA GPUs so it makes sense that it would mess it up for AMD. As you noted, it is optional, so I will fix this as soon as I can.