#6491 closed task (fixed)
Shadow framebuffer error, can't set shadows at "very high" level even when there is enough memory.
Reported by: | nani | Owned by: | |
---|---|---|---|
Priority: | If Time Permits | Milestone: | Alpha 26 |
Component: | Core engine | Keywords: | gpu shadow buffer no memory |
Cc: | nani | Patch: |
Description (last modified by )
0ad shadow buffer crashes if shadow setting is very high even if there is enough memory. My hunch is that is trying to allocate at the integrated graphics. Resolution 4k, integrated VRAM memory 500 MB, dedicated GPU 4GB.
(Already set all system/nvidia control panel to only use the dedicated gpu for 0ad)
Windows 10. Attachment with the system info.
Attachments (4)
Change History (18)
by , 2 years ago
comment:1 by , 2 years ago
Description: | modified (diff) |
---|
comment:2 by , 2 years ago
by , 2 years ago
Attachment: | logs.2.zip added |
---|
comment:3 by , 2 years ago
Attached the logs with those debug lines added to user config.
Opened game, changed shadow from "high" to "very high" multiple times. Error Framebuffer showed up on the left top each time, shadows disappeared.
follow-up: 6 comment:4 by , 2 years ago
So, the game doesn't crash itself and only shadows disappear?
Could you compile the game in Debug mode?
comment:5 by , 2 years ago
Summary: | Shadow buffer crash even when enough VRAM memory. → Shadow framebuffer error, can't set shadows at "very high" level even when there is enough memory. |
---|
follow-up: 7 comment:6 by , 2 years ago
Replying to Vladislav Belov:
So, the game doesn't crash itself and only shadows disappear? Could you compile the game in Debug mode?
No, no game crash. The shadows disappear, when trying to change them to "very high" level in the settings.
comment:7 by , 2 years ago
Replying to nani:
No, no game crash. The shadows disappear, when trying to change them to "very high" level in the settings.
Have you had a chance to test the debug build?
comment:8 by , 2 years ago
Added the new logs. This time I did the debug and release build against the last commit revision (18/4/2022).
by , 2 years ago
Attachment: | logs_mode_debug.zip added |
---|
by , 2 years ago
Attachment: | logs_mode_release.zip added |
---|
comment:9 by , 2 years ago
BTW: on the debug build it also happens the exact same thing, nothing different from what I can see.
comment:10 by , 2 years ago
From logs:
WARNING: OpenGL | high: error source: the API id 1285: GL_OUT_OF_MEMORY error generated. Failed to allocate CPU address space mapping for texture (consider building 64-bit app).
So we have no other way but to switch to 64-bit for shadows with high resolution. Refs #2611
follow-up: 12 comment:11 by , 2 years ago
Milestone: | Alpha 26 → Alpha 27 |
---|
comment:12 by , 19 months ago
Replying to Vladislav Belov:
Happy to say that this issue is not happening for the new release Alpha 26. I don't know if the fix was accidental from another change but now works without out of memory errors.
comment:14 by , 19 months ago
Milestone: | Alpha 27 → Alpha 26 |
---|
Could you try enable debug checks via adding the lines below to the config file?