You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Raylib bindings for Zig to render a tilemap by calling rl.drawTextureRec inside a loop. All tiles use the same texture, and the rendering happens within rl.beginTextureMode and rl.endTextureMode to allow for post-processing effects later.
However, when I inspect the rendering in RenderDoc, I notice that each tile results in a separate draw call instead of batching into a single one. Since I'm using a single texture, I expected Raylib to batch the draw calls automatically. I'm unsure why this is happening.
Issue description
I am using the Raylib bindings for Zig to render a tilemap by calling rl.drawTextureRec inside a loop. All tiles use the same texture, and the rendering happens within rl.beginTextureMode and rl.endTextureMode to allow for post-processing effects later.
However, when I inspect the rendering in RenderDoc, I notice that each tile results in a separate draw call instead of batching into a single one. Since I'm using a single texture, I expected Raylib to batch the draw calls automatically. I'm unsure why this is happening.
Environment
Version: 3.3.0 Core Profile Context 25.3.1.250220
GLSL: 4.60
GPU: AMD rx 7900 GRE
Issue Screenshot
The render doc screenshot with 1 draw call per tile
It is rebinding the same texture over and over again
Code Example
The text was updated successfully, but these errors were encountered: