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
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:
Thank you in advance