Skip to content

Render Queues

[!NOTE] Render queues work exactly as implied: The lower the queue value, the sooner it is rendered in the pipeline.

EntropyPortal does not enforce rigid queue definitions. However, for consistency, we recommend following conventions common in other engines:

Range (Approx)Common UsageSorting Strategy
0 - 999Background (Skyboxes, distant environments)Order of submission
1000 - 2499Geometry (Opaque objects, terrain, characters)Front-to-Back (Minimize Overdraw)
2450 - 2499AlphaTest (Foliage, fences)Front-to-Back
2500 - 3999Transparent (Glass, water, VFX)Back-to-Front (Compositing)
4000+Overlay (UI, debug primitives)Order of submission

The InstanceBatcher uses the render queue value provided in InstanceSubmission.

struct InstanceSubmission
{
// ...
int32_t renderQueue = 2000; // Default: Geometry
bool depthWrite = true; // Affects sorting direction
};
  • Geometry (queue < 2500): Sorted by renderQueue ASC, then depth ASC (Front-to-Back).
  • Transparent (queue >= 2500): Sorted by renderQueue ASC, then depth DESC (Back-to-Front).