02-12-2009 02:25 AM - edited 02-12-2009 02:25 AM
nrp wrote:Based on the advice from Wiebe I made my splash screen fade out using transparency.
Oddly enough, on a batch of PCs that are clones of each other (identical HW, with the OS imaged from a single source) it fades out at different speeds. Some run far slower than the others, and I have no idea why!
I think your system is loaded very heavily and therefore you are observing threadswapping....
Norbert
02-12-2009 04:40 AM
02-12-2009 05:16 AM
I tried using the Timed Loop structure with 40 ms frames for 25 fps. It still failed to keep the pace.
To me it looks like LabVIEWs window drawing sucks.
Resizing picture and window to roughly 400x200 makes it work good, but at 600x400 it's no chance.
/Y
02-12-2009 06:14 AM
Please observe the CPU load of your system using the Windows Task Manager. If the load is around/above 80%, i'd say that this is normal behaviour. If the load is significantly lower (less than 50%), then this is something we have take a closer look into....
Norbert
02-12-2009 06:35 AM
The load is 50% (one processor fully occupied), which is the whole problem. It shouldn't take 2,2 GHz to calculate 1 windows transparacy.
(18% with my small picture which runs at correct speed)
With the big picture it's approx 800x600, ~500k pixels, @25 fps 12m pixels/sec.
1 core at 2,5 GHz with a superscalar architecture should do some 5 billion instructions/sec.
-----------------------------
417 instructions per pixel?
/Y
02-12-2009 07:10 AM
02-12-2009 07:57 AM
I'd take a bit closer look to enusre both machines and software are actually identical.
Of particular interest is the graphics settings color depth, and graphic accelerator settings.
If you have another machine form that batch then try it out to make sure there is not an issue with that one machine. Who knows, maybe it has a bad cache.
Ben
02-12-2009 08:10 AM
02-12-2009 08:16 AM
It is possible the CPU is being used reasonably heavily, as I only put up the splash screen in the beginning while the application is initialising and a bit of data needs to be crunched through.
I kind of worked around the problem by deciding that anything more than 30 frames per second on the splash screen re-draw would be missed by most normal people, so I changed the transparency increment (i.e. instead of increasing the transparency by 1 every 5 milliseconds, I increased it by 5 every 20 milliseconds or something like that with the maths working out correctly to a 1/2 second fade in).
02-18-2009 08:00 AM
Continuing on the Splash thing, i'm now trying to make it intelligent.
As such, i'm trying to check if my application has launched, and only then fade out.
There seems to be some labview problematic/bug connected with this, but and i'll get to that.
I've managed to check if windows exists
I've managed to check if the window coordinates exists (thus being a visible window)
However, none of this works with LabVIEW windows!
Any ideas?
If you e.g. set the "get window refnum" to the title in Explorer you can get it to trigger when you select a folder and thus changes the window title, and it wont activate if the window is closed.
/Y