Home » Community » U++ community news and announcements » "New draw" performance preview...
"New draw" performance preview... [message #107] |
Thu, 24 November 2005 16:21 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
Well, we are at tought decision point with the new Draw system. This is quite controversial stuff - it goes against anything that is regarded to be a "correct behaviour" (bypassing all graphics accelerators, drawing just to plain ARGB memory surface), OTOH it would solve countless problems (and maybe generate other set of problems).
In order to make some real tests, I have created a simple performance demo. It should demonstrate how fast would be new Draw be when used to paint pages full of text (which in the end is the main performance problem always). Note that in this demo, no scroll is used, full page is always repainted to without use of any HW acceleration to memory surface and then moved to VGA.
This simle Win32 executable should work on any Win32 machine (I have just tested it with 486/66Mhz/Win95 - sluggish, but worked).
It reacts only to vertical mouse movement and left click switches between normal and antialiased text rendering.
Please report how it feels.
UPDATE: In order to give it more realistic text density and look, I have added right-click as another switch.
-
Attachment: CDraw.zip
(Size: 214.33KB, Downloaded 1883 times)
[Updated on: Thu, 24 November 2005 16:42] Report message to a moderator
|
|
|
Re: "New draw" performance preview... [message #110 is a reply to message #107] |
Thu, 24 November 2005 21:28 |
gprentice
Messages: 260 Registered: November 2005 Location: New Zealand
|
Experienced Member |
|
|
<Curious>
I have 2 GHz P4 with low end video card ATI 9550SE and widescreen LCD. I like page up/ down to work quickly coz I sometimes use it to get from one end of a file to the other. If you feel like it, is it possible to have a version that allows you to load any text you want, and also has scroll bars and page up \ down keys working. Then I can time the difference between this and other things - but only if you think it's worth it ...
Why is text the main performance problem - because it redraws the entire client area?? What about games - (which I know nothing about)?
Is UPP editor window using RichEdit?
</curious>
BTW - I get 98% CPU while moving mouse up/down with the test prog. Rapid scrolling in "normal" editor seems to be 40 - 60% CPU.
TIMING Set : 43.8 s - 4.7 ms ( 43.8 s / 9409 ), min: 2.0 ms, max: 30.0 ms, nesting: 1 - 9409
TIMING DrawRect : 93.9 s - 223.3 us ( 94.0 s / 420524 ), min: 0.0 us, max: 18.0 ms, nesting: 1 - 420524
TIMING Init : 0.0 us - 0.0 us ( 0.0 us / 1 ), min: 0.0 us, max: 0.0 us, nesting: 1 - 1
Graeme
|
|
|
|
Goto Forum:
Current Time: Sat May 11 11:02:13 CEST 2024
Total time taken to generate the page: 0.02586 seconds
|