Try the VistaClock - Major performance update!

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Sorry, I didn't give any info. Right-click the clock for options, one is "Sticky"
BERESHEIT
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Right click the clock for a context menu with "sticky".


@netmaestro - sometimes, after being covered by another window, or when stickied, the backdrop gets transparent (the round bit and hands stay, just the back face vanishes) and then whatever was in the background (a small rectangle the size of the window) is taken along for the ride if you move it. But it restores itself pretty swiftly - in about the same time frame that it takes to re-assert itself if stickied and covered.

XP pro.
@}--`--,-- A rose by any other name ..
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

A new version is ready, with some more features. Drop shadowing is rendered correctly, you can choose from several sizes from tiny to jumbo, there is a system tray icon for control, you can hide/show the clock, and cpu usage is down to nil as redrawing is arranged to take place only when a hand needs to move. Even at the jumbo size setting, cpu usage is 0. Get it while it's hot!
BERESHEIT
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

The previous flashing problem is gone with this new release. I've noticed the following artefact when the clock is over a title bar (i.e. clock has the focus or is in foreground, and in that case the title bar colour for the window underneath should be entirely "dimmed"). I wonder if anyone else has seen it?

Image
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

To borrow from a popular commercial - "I'm lovin it".

cheers
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Post by Konne »

It's a cool thng but it needs very too much resources for such a small tool. I geuess u made an openwindowedscreen() and this malkes it ofcause very slow.
Apart from that Mrs Lincoln, how was the show?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Konne wrote:It's a cool thng but it needs very too much resources for such a small tool. I geuess u made an openwindowedscreen() and this malkes it ofcause very slow.
Hmm - it's negligable on my system - always less than 2% usually shows 0.

I can live with that :)

cheers
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

Nice work, including graphics (Gimp/PS?). I did noticed that (like another or two) that some screencapture comes along for the ride when I move the clock over say this Webpage and drop it. Them go to move it again. Plus, I see lines on the left and sometimes on the right (like a partial window outline of sorts).

Also, maybe checking the screen boundries so when the size change does takes place the clock is entirely inside of the screen of the system. Just an idea anyway.

Still, neat stuff and look forward to the source and tut.

*thumbs up*
Intrigued - Registered PureBasic, lifetime updates user
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: Try the VistaClock

Post by NoahPhense »

netmaestro wrote:This little companion will sit on your desktop and tell you the time tirelessly without disturbing your desktop (it's transparent!) and use no cpu time at all. Give it a try! A gift from your friend, netmaestro.

http://www.networkmaestro.com/VistaClock.exe
Very nice.. found a little bug.. could be just my video card.. but its a nice
card.

was in 1024x768 .. ran the clock..

then change res to 1600x1200

turned grey.. didnt update even after being moved..

- np
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

I'm running in 1400x1050, fwiw.
Intrigued - Registered PureBasic, lifetime updates user
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

I'm not happy with the performance of the VistaClock and I don't think I can improve it in its present state. I can give it perfect performance by changing the approach but I have to sacrifice transparency in the clock face. The area around the clock face can keep its transparency, so it will still show round instead of square, which is the main thing. But the face itself behind the hands needs to be opaque. I've been at this from all directions and that looks like the best tradeoff. Anyway, over the next day or two the VistaClock is getting a complete overhaul, after which it will perform at a professional level without disappearing briefly every time the screen changes behind it, and any redraw problems it has now will be gone.
BERESHEIT
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

The VistaClock has undergone a major facelift performance-wise. It no longer suffers from any of the redraw problems present in early versions and will behave perfectly in all situations. This is the release version, as I'm happy with it now. Enjoy!
BERESHEIT
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Are you using a layered window?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Yes, I had to switch over to a layered window to get the redraw problems solved. I didn't want to do that because it won't be supported for Win9x but I'd rather have decent performance on less desktops than crappy performance everywhere.
BERESHEIT
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

netmaestro wrote:Yes, I had to switch over to a layered window to get the redraw problems solved. I didn't want to do that because it won't be supported for Win9x but I'd rather have decent performance on less desktops than crappy performance everywhere.
The new version is nice, thank you!
Users of Win9x is just stupid anyway :P
Now you only need a skin selector, and maybe a skin with a background that is not transparent.
Post Reply