Skip to content

Bloom effect creates lag on android #23

Description

@4lfg24

I'm having an issue where applying the bloom effect drops the fps from 60 to 30 on Android, I know that applying bloom is a pretty expensive operation, but I was wondering if there was a solution to this, here's my code:

vfxManager.cleanUpBuffers(Color(0.3f, 0.3f,0.8f, 1f))
        
        vfxManager.beginInputCapture()
        
        SharedObjects.batch.use {
            for (entity in SharedObjects.entities){
                if(entity is Player) {
                    entity.render()
                }
                else {
                    entity.render()
                }
            }
            
            for(effect in SharedObjects.effects){
                effect.draw(SharedObjects.batch, delta)
                if (effect.isComplete){
                    SharedObjects.effects.removeValue(effect, true)
                    effect.free()
                }
            }
        }
        vfxManager.endInputCapture()

        vfxManager.applyEffects()
        vfxManager.renderToScreen()

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions