So, I'm having this error with a map I'm making (with various varying amounts of vertices on each crash). Is there any way to fix this without having to cut stuff from my map?Out of vertex memory. Tried to allocate more than 1999503 vertices for a single frame
Out of vertex memory crash
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Out of vertex memory crash
Re: Out of vertex memory crash
Are you using the modern or legacy branch?
Re: Out of vertex memory crash
ModernRachael wrote:Are you using the modern or legacy branch?
Re: Out of vertex memory crash
Try it with the legacy branch. It uploads the map differently to the GPU - the modern branch contains an optimization that was designed to let the GPU take some of the work off of the CPU particularly with maps like Frozen Time. If it works better there, then it's possible your GPU is just RAM-starved and may need an upgrade. If you are using a laptop you might be able to change the memory split in the BIOS in order to give your GPU more RAM to avoid situations like this.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49244
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Out of vertex memory crash
Comment from the source:
So the important question is: What are you doing that it needs this many vertices?
Code: Select all
// If a single scene needs 2'000'000 vertices there must be something very wrong.
Re: Out of vertex memory crash
Thank you, this worked. Is there any source where I can check the differences between vintage and modern? My beloved tonemaps doesn't seem to work on vintageRachael wrote:Try it with the legacy branch. It uploads the map differently to the GPU - the modern branch contains an optimization that was designed to let the GPU take some of the work off of the CPU particularly with maps like Frozen Time. If it works better there, then it's possible your GPU is just RAM-starved and may need an upgrade. If you are using a laptop you might be able to change the memory split in the BIOS in order to give your GPU more RAM to avoid situations like this.
A 19600 sectors monstrosity composed of 5 giant interactive portals piled up. Trying vintage GzDoom, I now noticed that it runs normally at 20 FPS, but when I face certain directions, I get seconds per frame performance. Perhaps I screwed up my portals and there's some hole/leak/whatever that's causing this?Graf Zahl wrote:Comment from the source:
So the important question is: What are you doing that it needs this many vertices?Code: Select all
// If a single scene needs 2'000'000 vertices there must be something very wrong.
Re: Out of vertex memory crash
I doubt it's some leak or anything, just that you are using 5 giant portals and a ton of sectors, seriously what do you expect from an engine based on a 1993 game?Pedro vc wrote: A 19600 sectors monstrosity composed of 5 giant interactive portals piled up. Trying vintage GzDoom, I now noticed that it runs normally at 20 FPS, but when I face certain directions, I get seconds per frame performance. Perhaps I screwed up my portals and there's some hole/leak/whatever that's causing this?
Re: Out of vertex memory crash
Would me compiling a version with increased BUFFER_SIZE_TO_USE value solve this problem? Or there's other factors causing this crash?
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: Out of vertex memory crash
It's just a really demanding thing the engine is trying to do with all those portals. You might have to figure out some other way to accomplish what you're doing with them.Pedro vc wrote:Would me compiling a version with increased BUFFER_SIZE_TO_USE value solve this problem? Or there's other factors causing this crash?
Re: Out of vertex memory crash
Huh... this is weird, but the bug disappeared after I changed the position of the two lower large portals. I bet there's a very good technical explanation for this
Crashes:
https://imgur.com/6ry8xB4
Doesn't crashes:
https://i.imgur.com/hxp94ZY.png
Crashes:
https://imgur.com/6ry8xB4
Doesn't crashes:
https://i.imgur.com/hxp94ZY.png
Re: Out of vertex memory crash
Sorry for asking this, but what's the point of this if it runs at 20FPS? Wouldn't it be much more important to make sure it runs playably well?