Skip to content

Added Basic Particles #960

Draft
Mark7625 wants to merge 38 commits into117HD:masterfrom
Mark7625:particles
Draft

Added Basic Particles #960
Mark7625 wants to merge 38 commits into117HD:masterfrom
Mark7625:particles

Conversation

@Mark7625
Copy link
Collaborator

  • Emitters
  • Effectors

java_kVQ9YjWcsN

@Mark7625 Mark7625 marked this pull request as draft February 25, 2026 18:27
- Cap drawn particles at 2048 per frame; single VBO upload per frame (glMapBufferRange or BufferSubData).
- Use one GL_TEXTURE_2D_ARRAY for all particle textures (ParticleTextureLoader): layer 0 = white fallback, layers 1+ lazily loaded; single bind and single instanced draw per frame.
- Use persistent-mapped instance VBO when storage buffers are supported (no map/unmap per frame).
- Align instance stride to 64 bytes (9 floats: center, color, size, layer + 28 bytes padding); upload via ByteBuffer for better vertex fetch.
Combined Loader and Definition and cleaned up the gson
@Mark7625 Mark7625 closed this Mar 1, 2026
@Mark7625 Mark7625 reopened this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant