• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

3D vertex_freeze() crash, no matter what

Fern

Member
No matter when I call vertex_freeze(), it causes this error.



If I don't use it everything works fine but I'd like it to speed up vertex_submit() because as of right now, it's not very fast.
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
You should file a bug and include a link to a sample project. AFAIK, there was an issue with vertex_freeze but only on GL platforms (like Android), but on Windows it should work fine.
 

Fern

Member
@Juju and I seemed to have nailed it down to this...

This is on a Windows platform so that's a thing.

Code:
if ( vertex_get_number(_vb) > 0 ) {
   vertex_freeze(_vb);
}
 

Juju

Member
Previously the runtime would throw an error when trying to end a vertex buffer that was empty. That behaviour seems to have been changed at some point, but, combined with the fact that you cannot freeze an un-ended vertex buffer, that's had the knock-on effect of exposing an exception when freezing an empty vertex buffer.
 
Top