> Ihave been testing nui on TNT2 class hardware until last year and it was
> not showing any problem (of course it's not as fast as the latest high
> end graphic card...). I confess I mainly work on Win32 and MacOS so
> there may be something fishy with GLX or the way I render the widgets.
And what about offscreen rendering, what is it in the context of nui? Why is 
it needed? Maybe it gets set by default?

> >If it is so, is there a way to turn their use off, to get simpler but
> > faster gui? (nui test performs at about one frame per 5 or 10 seconds).
> This is really slow. Can you investigate? Run a profiler? Can you try to
> close nui windows untils you get a correct frame rate and tell me which
> one is causing the most problems (I think the SVG tiger might be the one
> eating all the CPU...)?
I was not even able to close any windows, I pressed close icon, but they 
stayed opened. Also, it's not only problem of nuitest, other examples also 
work very slow, like fileselect. I click on a file with a mouse and the 
cursor is placed there only after a second or two.

And also, what about shades around windows, how do you draw them? Via textures 
with alpha?


> It can also be a problem of antialiasing that is 
> not supported in hardware on your card. If this is the case then I can
> add a switch that prevents the use of antialiasing.
Yes, antialiasing on my card heavily reduces performance. I've found lines in 
the library where it was switched on (4 files, a lot of places) and commented 
them. I got total incorrect image on screen (black squares instead of fonts). 
And speed stayed the same!

Also, I guess the problem is totally in nui. Gears example in ngl gives me 
280fps. And glxgears from standard Linux installation gives the same.

But font benchmark with dancing fonts runs very slowly. Maybe there is problem 
with FreeType? Is there a way to turn antialiasing off in it?

And, in general, wouldn't it be useful to add the class or global variables 
which control how much visual sugar gets applied? Therefore a programmer 
could provide configuration switches inside his program so the user could 
adjust look up to his machine.

Ok, I guess you know better how to turn antialiasing off, so if you could, 
please add some kind of option (desirably one which could be used in runtime, 
not just during library compilation). It would be very cool!

Reply via email to