José Roca Forum
Web Site
News: Version 1.16 of the Windows API headers released
 
*
Welcome, Guest. Please login or register. September 09, 2010, 02:13:51 PM


Login with username, password and session length


PowerBASIC is a trademark of PowerBASIC, Inc.
This is not an official PowerBASIC site and we are not affiliated with PowerBASIC, Inc.
DISCLAIMER: The software and accompanying documentation are provided "as is" and without warranties as to performance or merchantability or any other warranties whether expressed or implied. Because of the various hardware environments into which the software may be used, no warranty of fitness for a particular purpose is offered. The user must assume the entire risk of using the software. In no case shall any of the contributors to this project be liable for any incidental, special or consequential damages or loss, including, without limitation, lost profits or the inability to use equipment or access data. This is true even if we are advised of the possibility of such damages. We also don't have any obligation of fix eventual bugs or to add new features.
Pages: 1   Go Down
  Print  
Author Topic: DreamWork (pushing the limits)  (Read 1409 times)
0 Members and 1 Guest are viewing this topic.
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« on: December 24, 2008, 05:46:31 PM »

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  Wink

Screen shot:



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

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

...

« Last Edit: December 24, 2008, 06:09:12 PM by Patrice Terrier » Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Petr Schreiber
Sr. Member
****

Karma: 9
Offline Offline

Posts: 420


« Reply #1 on: December 27, 2008, 11:36:49 PM »

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 Smiley

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


Thanks,
Petr
Logged

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

psch.thinbasic.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #2 on: December 28, 2008, 12:20:14 AM »

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.

...

Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #3 on: February 04, 2009, 11:49:56 AM »

I had to make some changes to let it work on VISTA x64, if interrested then let me know.

...
Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Pages: 1   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

IMPRESSUM
Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.164 seconds with 19 queries.