Apply shader once per change instead once per frame #1

Closed
opened 2024-06-04 16:37:10 +00:00 by ChaoticByte · 0 comments
ChaoticByte commented 2024-06-04 16:37:10 +00:00 (Migrated from github.com)

By copying the viewport texture after the shader was applied to the canvas2d, setting the viewport texture to the canvas2d, and removing the shader, we have the result visible, the shader was applied, and heavy shaders won't drag down the performance as the shader is only computed once (best case) or a few frames (worst case).

By copying the viewport texture after the shader was applied to the canvas2d, setting the viewport texture to the canvas2d, and removing the shader, we have the result visible, the shader was applied, and heavy shaders won't drag down the performance as the shader is only computed once (best case) or a few frames (worst case).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ChaoticByte/Fragmented#1
No description provided.