• Welcome to PowerBasic Museum 2020-A.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

DreamWork (pushing the limits)

Started by Patrice Terrier, December 24, 2008, 05:46:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Patrice Terrier

Plasma like animation changing the background of a GDImage composited skinned window.

The background animation is fully cooperative with the child controls drawn on the foreground.

With this new kind of window, it is better to use a slow animation and smooth color transition to avoid user's distraction, if you see what i mean  ;)

Screen shot:



Of course hard to figure the result of the animation with this static image  :)

Note: I had a hard time to keep the CPU usage as small as possible (5% to 6% on VISTA)

...

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Petr Schreiber

Hi Patrice,

another impressive demo!

It works nicely on Windows XP SP2, redrawing works ok, just the clock flickers from time to time.

CPU use is around 20% by default, but I have single core CPU Sempron 64bit 3400+, which is not designed to be superfast.
I have new graphic card, GeForce 9 series, so this should not be bottleneck :)

Here are CPU results for various animation timings:
10ms - 99% CPU
100ms - 30% CPU
200ms - 20% CPU
400ms - 10% CPU


Thanks,
Petr
AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com

Patrice Terrier

Petr,

Thanks for the feedback.

I can see a big difference between a single and a dual core processor.

The clock shoudn't flicker, because all the child controls are redrawn in composited mode.

Anyway the solution could be to use the WM_PRINT message and redraw everything to a private memory DC then use one single BitBlt instead of the classic INVALIDATE/WM_PAINT currently being used.

...

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

The first post of this thread has been updated, to fix the ZIP file corruption caused by the "Server Collapse".

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com