when I run my game it plays at 30fps which is fine, but when I add a health bar overlay this drops down to 20fps for some reason. Is there any way of having an overlay in camera view without a significant performance drop? Thanks


1 Answer 1


Short answer, no. UPBGE 0.3's overlay pipeline is somewhat lacking in terms of performance.

Here is youle one of the core developers explaining a partial solution earlier this year to someone else who had a similar question about his UPBGE 0.3 project:

enter image description here

Manually constructing your own UI with the BGL/BLF modules' would be better. Here is the blend that youle shared in the screenshot:


Additionally, UPBGE 0.2 has better overlay performance for now, so if possible, use one of those release versions instead.

  • $\begingroup$ I see, is there a way to use this script to show images instead of text? $\endgroup$
    – Minato
    Dec 31, 2021 at 2:24
  • 1
    $\begingroup$ Personally I've never been able to draw images with BGL (Blender OpenGL module) on my own, although I know many have been able to, whether in BGE, UPBGE 0.2 or UPBGE 0.3. Here is one a UPBGE 0.3 UI framework though: github.com/mysticfall/alleycat-ui $\endgroup$
    – RPaladin
    Jan 1, 2022 at 3:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .