Questions tagged [batching]
The batching tag has no summary.
30 questions
1
vote
0
answers
155
views
Multiple Shaders With Sprite Batching
I have coded a game in OpenGL and for rendering I used a Sprite Batching technique to draw many sprites in a single call to glDrawElements(). But as soon as I ...
0
votes
1
answer
407
views
2D Batching and correct draw order
I'm encountering a design challenge while developing my 2D C++ OpenGL engine. I'm using a batching technique for rendering my drawable objects, and I want to ensure they are drawn in the same order ...
-1
votes
1
answer
420
views
Batch rendering model matrix to shader
I'm working on a batch renderer. I'm limited to using one shader per batch (one draw call for everything).
I want to use a TBN matrix for my lighting. To calculate the TBN matrix for each object I ...
0
votes
1
answer
497
views
Efficiently pass one uniform value per polygon or quad to the fragment shader in a single batched draw call in WebGL?
I want to render multiple colored quads, with one solid color per quad, using WebGL 2.0 and Javascript. However, this question is probably generalisable to other OpenGL implementations as well.
The ...
3
votes
0
answers
2k
views
TextMeshPro batching unity
I have several GameObject with textMeshPro component attached to them, each one of them draw themselves individually resulting in a lot of draw call is there any way to batch them?
Each one of them ...
0
votes
0
answers
110
views
How to optimize Floor Meshes with different material in unity
I have several meshes (floor tiles) that consist of unique materials as they have different textures. I see that it is taking too many batches and it has around 100m vertexes.
Is there any way to ...
2
votes
1
answer
2k
views
Is it possible to get object rotation in a shader for dynamically batched objects?
All the batched objects have the same rotation. To simulate the effect of directional light I need to determine the object sides actual (world) directions. Normally I would use ...
0
votes
1
answer
1k
views
For dynamically batched objects the `unity_ObjectToWorld` shader variable is always set to default?
I'm using the standard render pipeline and the unity_ObjectToWorld variable for some calculations in my shader. After I enabled dynamic batching these calculations ...
0
votes
0
answers
99
views
How do I edit this texconv "IMGtoBC3.bat" file so it "READS FROM & PRESERVES the directory structure when writing the "resulting" dds files
Like the title says:
How do I edit this texconv "IMGtoBC3.bat" file so it "READS FROM & PRESERVES the directory structure when writing the "resulting" dds files?
THIS IS ...
0
votes
1
answer
147
views
Directx11 batching verticies to draw later
I have several draw functions in my renderer to draw primitives e.g.:
Drawing a Quad:
...
0
votes
0
answers
279
views
Low Res Atlas Texture vs. Many different materials without textures
So I have recently started to look into optimizing a medium complex 3D scene, more specifically i am looking to improve the performance i get from a fairly realistic bus. I am currently using the ...
0
votes
1
answer
4k
views
Enabling / disabling Static objects in Unity
The Unity docs clearly explain that game objects marked static should not be moved for performance reasons but I can't find any info regarding enabling / disabling.
Almost everything in my games ...
2
votes
1
answer
2k
views
Huge level size after build APK in Unity
I made maps used bunch of small objects which are mostly scenary, like part of road, buildings, obstacles. They are all lightmap static, batching static, occludee static.
However after build APK, "...
1
vote
1
answer
573
views
Reducing texture bindings in LibGDX when drawing text
I'm making custom menus and buttons (I don't want to use scene2D) and I have everything in atlases, but when I draw a button, if it has text, the texture binding is always x2 because of the switching ...
1
vote
0
answers
305
views
2d ParticleSystem batching problem
I have multiple ParticleSystems with TextureSheetAnimation pointing to the same texture, using different offsets/rows to choose ...