I've been playing around with raylib for a bit and I really like the simplicity of it, but I keep running into the following error once I draw a couple too many cubes or planes:
Google don't seem to know what it's all about, and I cant find a whole lot on it in the source code, is there any way around this?


  • raylib defines a triangles batch limit to avoid GPU stalls, that limit is set in source code:

    Actually is set to a maximum of 4096 triangles... How many cubes are you drawing?

    If you need more than that you cn just modify that value and recompile the library with Notepad++ script: raylib_source_compile
  • Thanks for the quick reply! It started when I drew a 10x10 grid of cubes and things got a little out of hand from there.
    I don't know how I could have missed that, my bad.
Sign In or Register to comment.