Skip to content

Shaders to perform CPU intensive texture modifications #30

@Rinnegatamante

Description

@Rinnegatamante

This is probably a stupid question but i'm not familiar very much on how shaders work with sf2dlib so if you can reply me about this it could be really helpful:

I'm in a situation that i need to perform a modification on a texture which is really CPU intensive so i thought it could be a good idea to move this calculation in a shader so that the whole thing should run pretty faster since shader is executed by GPU.

IF you want to take a look, this is the problem: Rinnegatamante/easyrpg-player-3ds#11

At the moment i've suggested to swap to citro3D since it has native support to shaders but maybe integrating some functions to just enable or disable different shaders so that it's possible to swap between the empty shader used by default to someone that should perform some calculation on the texture it's not that hard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions