yquake2 / ref_vk

Optional Vulkan renderer lib for Yamagi Quake II
Other
47 stars 10 forks source link

VK_ERROR_OUT_OF_DEVICE_MEMORY error upon launch on linux #34

Closed AT14C closed 1 year ago

AT14C commented 1 year ago

OS: Arch Linux x86_64 Kernel: 6.0.5-x64v2-xanmod1-1 CPU: Intel i7-10750H (12) @ 5.000GHz GPU: NVIDIA GeForce RTX 2060 Mobile

Building and using the latest commit of this repo results in a segfault before even properly launching the game on my machine. However, whenever I build and use release 1.02 from June 13th it works just fine. Screenshot_20221207_191655

turol commented 1 year ago

Are you using the integrated Intel GPU or the Nvidia one? Do you have the correct drivers installed?

0lvin commented 1 year ago

Could you please try with vk_validation = 2? It should show memory regions, I suppose that code has not found required region of memory.

Update: vk_validation is renamed to r_validatuon in master branch.

AT14C commented 1 year ago

Are you using the integrated Intel GPU or the Nvidia one? Do you have the correct drivers installed?

Nvidia gpu, and I am using the official driver

Could you please try with vk_validation = 2? It should show memory regions, I suppose that code has not found required region of memory.

Update: vk_validation is renamed to r_validatuon in master branch.

I tried it (via quake2 +r_validation 2), but the debug output doesn't seem to be much more verbose image

AT14C commented 1 year ago

Also here's a log from me running the older stable release with +vk_validation 2 if it helps log.txt

turol commented 1 year ago

There's nothing especially helpful here. Please attach a full log with the new (failing) ref_vk and the output of vulkaninfo. Also it would be useful if we added more logging. We should log all memory heap info, on failing allocation we should log information (especially size) about the allocation and we should have a cvar for logging all allocation info always.

0lvin commented 1 year ago

Could you please try with validation_force branch? https://github.com/yquake2/ref_vk/commit/6cead718c1bd74d7574fd06b2e19443437fa4eca should provide more information what is going wrong.

AT14C commented 1 year ago

validation_force.txt vulkaninfo.txt

0lvin commented 1 year ago

Could you please try with https://github.com/yquake2/ref_vk/tree/validation_old and https://github.com/yquake2/ref_vk/tree/validation_force? Are both working? Which of branch produces better fps with?

r_validation  0
timedemo 1
demomap demo1.dm2
AT14C commented 1 year ago

Both work, but there is an obvious performance difference. For validation_force the demo runs slightly faster than normal speed, taking a total of 29.3 seconds to complete, while validation_old finishes in 0.8 seconds. Both builds were compiled with debug flags though, so they could possibly run faster, but I'd imagine the large difference between the two would still be the same.

Here's the stats: validation_force: 689 frames, 29.3 seconds: 23.5 fps validation_old: 689 frames, 0.8 seconds: 836.2 fps

0lvin commented 1 year ago

Could you please check, and reopen bug if issue is still exists?

AT14C commented 1 year ago

Ok I tried the fork you made and it works perfectly fine and runs great too, I think you fixed it :+1:

0lvin commented 1 year ago

Thank you, I have created v1.0.3 tag.