kukugt / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

Slowdown on ATI r300 GPUs when OSD text is fading in/out #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To fix this issue, the OGLFT.cpp file needs to be refactored to remove all
the font rendering classes except the Grayscale class which is used by
Mupen64plus.  Then the color setting functions need to be taken out of the
drawing list compilation process and used instead at a higher level, before
each drawing list call during rendering.  This will prevent the
re-compilation of all the glyphs (including the expensive bitmap generation
step) during each frame, and re-use the existing compiled glyphs even while
fading.

Original issue reported on code.google.com by richard...@gmail.com on 15 Jun 2008 at 4:15

GoogleCodeExporter commented 8 years ago
As an r300 owner, I appreciate the thought, but if there's a chance we're going 
to 
use the other classes for something (like netplay chat or OSD console), I'd 
actually rather you don't do this. I specifically added the OSD Enable GUI / 
config 
file option so I could disable it until my drivers work properly. 

Original comment by sknau...@wesleyan.edu on 15 Jun 2008 at 7:50

GoogleCodeExporter commented 8 years ago
I don't think the other rendering classes are necessary - the different classes 
just
use different methods for the text rendering.  For example, there are 
Monochrome,
Grayscale, Translucent, Polygonal, Outline, Texture, etc.  Contrary to my 
original
issue report, I believe the one we are using is 'Monochrome'.  If we added a 
console
for netplay or general use it would still probably use the Monochrome class, so 
we
won't be losing much (other than unnecessary complexity) by removing the others.

Original comment by richard...@gmail.com on 15 Jun 2008 at 12:32

GoogleCodeExporter commented 8 years ago
Yea, we don't need Translucent, Polygonal, Outline, Texture, etc. As long as we 
can 
have colored text we should be okay. 

Original comment by sknau...@wesleyan.edu on 15 Jun 2008 at 10:09

GoogleCodeExporter commented 8 years ago
Should be fixed in rev 682.  I think this was mostly a CPU consumption issue 
and so
probably affected people with other GPUs as well.

Original comment by richard...@gmail.com on 26 Jun 2008 at 5:09