Skip to content

feat: add shader uniform caching #266

@iMeaNz

Description

@iMeaNz

Objective

For now we are setting the uniforms every frame
This create useless driver calls that can lead to a overhead in terms of performance.
Every shader should have a uniform cache (based on wjat uniforms they hold), then when setting the uniform we should first check if the uniform changed based on the one in the cache.

Acceptance Criteria

  • 1. Implement a uniform cache
  • 2. Use the cache the uniform setter functions

Dependencies

No response

Technical Details

No response

Type

Engine

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions