TheCherno / Hazel

Hazel Engine
Apache License 2.0
11.75k stars 1.51k forks source link

Problem when running Project on Intel GPUs #679

Closed FlyingStudent closed 5 months ago

FlyingStudent commented 6 months ago

Hi Everyone I am really sorry for this but i thought that I Used an Intel GPU while i use an amd GPU: Screenshot (245) Now, What is the solutoin for my problem? My problem was that I am getting an opengl invalid enum and i think that the problem is due to GL_SHADER_BINARY_FORMAT_SPIR_V. Here goes the image for the error that's occuring : Screenshot (244) Now, if I am using an AMD GPU why that problem occurs @VagueLobster ?

Kirdow commented 6 months ago

Top line in the console output says

Renderer: Intel(R) HD Graphics 520

I'm gonna assume you're on a laptop, since laptops usually have a thing where they default to your CPU's integrated graphics and then use the GPU when you explicitly tell it to. My suggestion is to look up how to do this for AMD unless VagueLobster knows.

Another possibility if you use a desktop PC is that you connected your monitor to the motherboard instead of your graphics card. This causes your main GPU to be that of the motherboard, which is the CPU integrated graphics. (This is also why laptops default to the integrated GPU from the CPU, since the laptop monitors usually connect to the motherboard.) If this is the case, reconnect the monitor cable from the motherboard slot at the back of your PC and instead connect it to the GPU card itself. Then the problem should disappear.

VagueLobster commented 6 months ago

Top line in the console output says

Renderer: Intel(R) HD Graphics 520

I'm gonna assume you're on a laptop, since laptops usually have a thing where they default to your CPU's integrated graphics and then use the GPU when you explicitly tell it to. My suggestion is to look up how to do this for AMD unless VagueLobster knows.

Another possibility if you use a desktop PC is that you connected your monitor to the motherboard instead of your graphics card. This causes your main GPU to be that of the motherboard, which is the CPU integrated graphics. (This is also why laptops default to the integrated GPU from the CPU, since the laptop monitors usually connect to the motherboard.) If this is the case, reconnect the monitor cable from the motherboard slot at the back of your PC and instead connect it to the GPU card itself. Then the problem should disappear.

@FlyingStudent I agree with Kirdow: Look it up on google on how to this for AMD, as i am using an Nvidia GPU myself!

FlyingStudent commented 6 months ago

Thanks you all I am really thankful for having such gorgeous community to help me ❤❤ I am going to try it out and tell you with the result before closing the comment. Thanks again for your help @VagueLobster, @Kirdow

FlyingStudent commented 6 months ago

Morning Everyone! My problem ain't solved yet. I learned how to change the current active GPU to AMD so i changed visual studio to use but as it turned out, I need to change the project I am running itself to use it because even though visual studio is using the AMD GPU my project runs on intel as the debugging window shows when i run my project. Can anyone help me with that ? Thank you all for support I really appreciate it . Have a nice day

FlyingStudent commented 6 months ago

Update: problem is nearly solved. when i plug my power adapter it switch to the AMD GPU but when there's no power it doesn't automatically. Working on it

FlyingStudent commented 6 months ago

Problem is solved ! Now, I am using my AMD GPU instead of my intel GPU. Thank you all for your support. It was really helpful Thanks Yan for this beautiful community that you have created ❤❤ Thanks @Kirdow , @VagueLobster for your support . you were a huge help ❤

ViktorPopp commented 5 months ago

Please close the issue.