Hey! raylib forum is closing!

After a year with not much movement in the forum I decided to close it.

The cost of maintaining the hosting is a bit high for the usage of the platform, updating the forum and managing it is also a bit cumbersome and the truth is that I'm already trying to maintain multiple other networks pretty more active than this forum.

I'll recommend you to move to the other raylib networks:

- For a forum style, use Reddit: https://www.reddit.com/r/raylib/
- For direct messaging and questions, use Discord: https://discord.gg/VkzNHUE
- To report issues, use GitHub: https://github.com/raysan5/raylib

- Also, remember you can contact me personally on Twitter: https://twitter.com/raysan5 or directly by mail to ray[at]raylib.com

If you feel generous, you can also contribute to the project on my Patreon: https://www.patreon.com/raylib

Thanks to you all for joining the project and help to improve it with your questions. Keep it up! :)

Best Regards,

Ray

PD. Closing will be effective by October 31th.

MAX_TRIANGLES_BATCH overflow

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:
ERROR: MAX_TRIANGLES_BATCH overflow
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?

Comments

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

    https://github.com/raysan5/raylib/blob/master/src/rlgl.h#L98

    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.