Overview
Use this guide if you are experiencing “Out of vertex memory” or “Out of index memory” errors. This guide contains a powershell script which can edit your Wreckfest executable vertex and index buffer size.
About
Wreckfest uses a fixed size memory buffer for in game geometry data, in most cases this is big enough for the game to work properly, but with larger 3rd party maps you might experience “Out of vertex buffer memory” or “Out of index buffer memory” error. This is a game limitation which can be expanded by modding your executable.
The powershell script below can modify your executable to expand these buffers. Only the 64-bit version is supported.
How to patch
NOTE: Since most updates will modify your game executable, you will have to do this after every update. Will only work with update 2021.02.09.
- Download the script from here
- Go to [link]
- RIGHT click “Raw” button
- Click “Save Link As” to download the script
- Copy the script to your Wreckfest folder (it has to be in the same folder as “Wreckfest_x64.exe”)
- (Optional) Customize the buffer sizes. By default these are 128 MB for the index buffer and 256 MB for the vertex buffer.
- Double click the wreckfest_patch_vbo_ibo_size.ps1 script and edit the variables.
- $vboSize = 256MB #Vertex buffer size
- $iboSize = 128MB #Index buffer size
- To be safe make sure that the size is a multiple of 16 megabytes.
- Right click the script and choose “Run with PowerShell”
How to restore the game
The script will make a backup when it edits your exe, you can use this to restore the original exe. To do this rename Wreckfest_x64.exe.bu to Wreckfest_x64.exe. (You might have to delete your modded Wreckfest_x64.exe first to be able to rename it.)
Errors
- ERROR Version mismatch
Wreckfest was updated, please wait for an updated patcher script. - ERROR Wrong path
The script did not find the game executable. Please run the script in the same folder as the “Wreckfest_x64.exe”