Atari Themed Clock face - chimes, alarms and mouse fix

Hardware, coding, music, graphic and various applications

Moderators: Mug UK, moondog/.tSCc., [ProToS], lp, Moderator Team

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Request for Atari Themed Clock face

Postby wongck » Wed Jul 04, 2012 8:44 am

joska wrote:Yes and no. Locking the screen prevents the mouse from being painted, but the position can still change until the mouse is switched off.


I was thinking that this will not happen as the position of the mouse and what you have on the screen will not be correct... but I never know for sure.
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Request for Atari Themed Clock face

Postby wongck » Thu Aug 09, 2012 1:32 pm

Finally have some time to look at this.
An interesting thing I found out was the mouse will flicker even when I did have the mouse off and mouse on function calling one after the other. 8O
So not doing any drawing but just looping through every seconds, the mouse flickers.
This however seems to be depending on the location of the mouse. At some location, the mouse don't flicker. :P
I cannot find any correlation between the position of the mouse and the clock... happens regardless of mouse is near or far from the clock. :roll:

This was tested on my 32MHz TT.
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

m0n0
Captain Atari
Captain Atari
Posts: 417
Joined: Mon Oct 05, 2009 3:13 am

Re: Request for Atari Themed Clock face

Postby m0n0 » Thu Aug 09, 2012 7:06 pm

Did you know there is an non blocking mode for locking the screen? See toshyp documentation. Maybe that can help.

You can call wind_update with a special mode, and if it would lock, it returns an error. Maybe this enables you to have faster redraw (only do redraw when wind_update doesn't lock) and so reduce the mouse flicker...

helmut
Captain Atari
Captain Atari
Posts: 169
Joined: Thu Jan 07, 2010 4:30 pm

Re: Request for Atari Themed Clock face

Postby helmut » Thu Aug 09, 2012 9:27 pm

wongck wrote:Finally have some time to look at this.
An interesting thing I found out was the mouse will flicker even when I did have the mouse off and mouse on function calling one after the other. 8O
So not doing any drawing but just looping through every seconds, the mouse flickers.



I thought you leave it on when you're not drawing where the mouse is? Why should it not flicker when you set it off and on?

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Request for Atari Themed Clock face

Postby wongck » Thu Aug 09, 2012 11:10 pm

helmut wrote:I thought you leave it on when you're not drawing where the mouse is? Why should it not flicker when you set it off and on?

It was a test.
I was optimising the amount to draw. And was trying to figure out why it was still flickering when 1 line drawing. It ought to be fast enough to see no flickering.
So I just tried the fastest off and on... ie putting the function back to back without anything.
And it still flickered..... :roll:

Anyway, I did that sea bear protection thingy now :wink: .... so it's done. Looks OK :D
I was trying to avoid doing it cause the mouse can still suddenly move into it.
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Request for Atari Themed Clock face

Postby wongck » Thu Aug 09, 2012 11:16 pm

m0n0 wrote:Did you know there is an non blocking mode for locking the screen? See toshyp documentation. Maybe that can help.

You can call wind_update with a special mode, and if it would lock, it returns an error. Maybe this enables you to have faster redraw (only do redraw when wind_update doesn't lock) and so reduce the mouse flicker...


Yes, I though it was a method to tell your app that it is not ready to give you screen control immediately.
As a time sensitive app may miss something while waiting for the last screen operation by another app to complete.
Your own app is blocked until it get the screen control (like semophore type thingy).
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Request for Atari Themed Clock face

Postby wongck » Sun Aug 12, 2012 11:19 pm

I will be releasing a new version soon with the mouse cursor flash fix & some new features.
If there are some features that is missing let me know before I release the version, so I can put them in. Thanks guys.
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Request for Atari Themed Clock face

Postby wongck » Tue Aug 14, 2012 2:00 pm

Uploaded version 1.20 on my webpage.
- fixes mouse cursor flickering - does not turn off mouse when it is away from the clock
- Added chime and alarm - play sound file
- replace chime and alarm sound with your own sound file
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 806
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: Request for Atari Themed Clock face

Postby jfl » Tue Aug 14, 2012 3:52 pm

wongck wrote:Uploaded version 1.20 on my webpage.
- fixes mouse cursor flickering - does not turn off mouse when it is away from the clock

This is perfect. I knew there had to be a way. Thanks.
Jean-François
GEMDict – GEMClip

User avatar
MacFalcon
Captain Atari
Captain Atari
Posts: 255
Joined: Sat Oct 11, 2003 1:00 pm
Location: Muenchberg, Germany
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby MacFalcon » Tue Aug 14, 2012 7:57 pm

Yeah, thanks a lot! Great to see you active that much!
Falcon060, 100/25 MHz, 256 MB SD-RAM, PhantomPBS, CTPCI with Radeon, USB and Network Card. atari rulez!

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby wongck » Tue Aug 14, 2012 11:00 pm

Thanks guys.
I am having some issues with my other program builds, not sure what it is.
Hope this phclock build works for both CF & 69K.
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Request for Atari Themed Clock face

Postby wongck » Tue Aug 14, 2012 11:19 pm

jfl wrote:This is perfect. I knew there had to be a way. Thanks.

Hope this works.
I ran out of ideas.
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 806
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: Request for Atari Themed Clock face

Postby jfl » Wed Aug 15, 2012 6:09 am

wongck wrote:
jfl wrote:This is perfect. I knew there had to be a way. Thanks.

Hope this works.
I ran out of ideas.

Just a small issue still. I have it launched automatically by the desktop (Thing) and the first time the hands are drawn they are drawn a couple of cm too long (at least the red ones, not sure about the green), outside the clock face area.
Jean-François
GEMDict – GEMClip

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby wongck » Wed Aug 15, 2012 11:21 am

I cannot see this problem on my desktop.
But then I am using Teradesk, not Thing.
Mmm.... I need to get Thing. What version is your's?
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 806
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby jfl » Wed Aug 15, 2012 11:32 am

wongck wrote:I cannot see this problem on my desktop.
But then I am using Teradesk, not Thing.
Mmm.... I need to get Thing. What version is your's?

1.29. It seems to happen when the hands are drawn thin. After rebooting with the hands set as thick I didn't notice this redraw issue.
Jean-François
GEMDict – GEMClip

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby wongck » Wed Aug 15, 2012 1:39 pm

jfl wrote:1.29.

OK, so I should say that I don't have this version, and so can you sent it to me so that I can test it. :mrgreen:
But then, it's probably CF build so I cannot use it.

jfl wrote:It seems to happen when the hands are drawn thin. After rebooting with the hands set as thick I didn't notice this redraw issue.

Yes, there is something fishy with the v_plines() function.
It was drawing some weird lines outside the clock in some resolutions on my TT when I tested it in very early version of the software.
This happened when it was width > 1. I saw the seconds hand with width = 1 was drawing correctly.
So I made this thin/ thick hands settings to counter this issue.

So this is happening reverse for you, thin draws wrongly.

I think it is a VDI issue, as just changing the width of the line draws it correctly ( no change in the drawing points).
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 806
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby jfl » Wed Aug 15, 2012 1:55 pm

wongck wrote:
jfl wrote:1.29.

OK, so I should say that I don't have this version, and so can you sent it to me so that I can test it. :mrgreen:
But then, it's probably CF build so I cannot use it.

I don't think Thing has been built for the ColdFire yet. Anyway, Thing is on AtariForge now. And I agre this is most probably a VDI issue so don't fret :)
Jean-François
GEMDict – GEMClip

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby wongck » Wed Aug 15, 2012 4:03 pm

jfl wrote:I don't think Thing has been built for the ColdFire yet. Anyway, Thing is on AtariForge now.

Good to know. I did not know it is there. I will check it out later. :D

jfl wrote:And I agre this is most probably a VDI issue so don't fret :)

No issues here... I'm cool. :mrgreen:
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby wongck » Sun Sep 09, 2012 3:29 pm

Small update - v1.21 runs on Mint 1.16 as well.
Also running on Thing 1.29 as well.

Get it from my web site download page.
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

Latz
Captain Atari
Captain Atari
Posts: 157
Joined: Tue Mar 08, 2011 6:02 pm
Location: Germany
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby Latz » Mon Oct 15, 2012 11:53 am

Hello WongCK,

i really would translate phclock too, but it crashes here reproduceable
(on Falcon/CT60/CTPCI with MiNT 1.18 (trunk0210).

- PRG starts, displays clock with white Atari logo on blue background.
- When "ticking" to next second, phclock crashes with error
"(phclock): BUS ERROR: User PC=22CCE70, Address: FFFF8900 (basepage=22C6000, text=22C6100, data=22E98E0, bss=22EA500)"
or
"(PHCLOCK): BUS ERROR: User PC=23FCE70, Address: FFFF8900 (basepage=23F6000, text=23F6100, data=24198E0, bss=241A500)".

First error when starting from VFAT drive (but all files uppercase), second when started from FAT.
MiNT is set to "localtime".
What is going wrong here?

Regards,
Latz
Falcon/CT60, 14+128 MB RAM, CTPCI/Radeon 9250,
EtherNeC, Carte Eiffel+LCD, 80GB IDE HD, DVD-RW.
Falcon/CT63, 4+128 MB RAM, CTPCI/Radeon 9250,
NetUSBee, Carte Eiffel+LCD, 40GB IDE HD, CD-RW.

Latz
Captain Atari
Captain Atari
Posts: 157
Joined: Tue Mar 08, 2011 6:02 pm
Location: Germany
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby Latz » Mon Oct 15, 2012 11:53 am

Hello WongCK,

i really would translate phclock too, but it crashes here reproduceable
(on Falcon/CT60/CTPCI with MiNT 1.18 (trunk0210).

- PRG starts, displays clock with white Atari logo on blue background.
- When "ticking" to next second, phclock crashes with error
"(phclock): BUS ERROR: User PC=22CCE70, Address: FFFF8900 (basepage=22C6000, text=22C6100, data=22E98E0, bss=22EA500)"
or
"(PHCLOCK): BUS ERROR: User PC=23FCE70, Address: FFFF8900 (basepage=23F6000, text=23F6100, data=24198E0, bss=241A500)".

First error when starting from VFAT drive (but all files uppercase), second when started from FAT.
MiNT is set to "localtime".
What is going wrong here?

Regards,
Latz
Falcon/CT60, 14+128 MB RAM, CTPCI/Radeon 9250,
EtherNeC, Carte Eiffel+LCD, 80GB IDE HD, DVD-RW.
Falcon/CT63, 4+128 MB RAM, CTPCI/Radeon 9250,
NetUSBee, Carte Eiffel+LCD, 40GB IDE HD, CD-RW.

Latz
Captain Atari
Captain Atari
Posts: 157
Joined: Tue Mar 08, 2011 6:02 pm
Location: Germany
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby Latz » Mon Oct 15, 2012 11:54 am

Hello WongCK,

i really would translate phclock too, but it crashes here reproduceable
(on Falcon/CT60/CTPCI with MiNT 1.18 (trunk0210).

- PRG starts, displays clock with white Atari logo on blue background.
- When "ticking" to next second, phclock crashes with error
"(phclock): BUS ERROR: User PC=22CCE70, Address: FFFF8900 (basepage=22C6000, text=22C6100, data=22E98E0, bss=22EA500)"
or
"(PHCLOCK): BUS ERROR: User PC=23FCE70, Address: FFFF8900 (basepage=23F6000, text=23F6100, data=24198E0, bss=241A500)".

First error when starting from VFAT drive (but all files uppercase), second when started from FAT.
MiNT is set to "localtime".
What is going wrong here?

Regards,
Latz
Falcon/CT60, 14+128 MB RAM, CTPCI/Radeon 9250,
EtherNeC, Carte Eiffel+LCD, 80GB IDE HD, DVD-RW.
Falcon/CT63, 4+128 MB RAM, CTPCI/Radeon 9250,
NetUSBee, Carte Eiffel+LCD, 40GB IDE HD, CD-RW.

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby wongck » Mon Oct 15, 2012 1:46 pm

I think it is trying to swicth off the alarm after 1 second.
it checks the alarm state if it is not set to off.

I will take a look at it... but I have a bigger issue now.
My hdd is booting very slowly now and Mint is reporting rwabs errors.
( but still boots )

I am not sure if this is a coincident or not.... I was trying to install MagiC on my system because the emulator is not working well.
I guess I will not be testing the apps on MagiC in a real Atari. :(

Edit: I tried my spare HDD and it is the same. Boot up first time and then after a few minutes I hear clicks from the HDD as if a reset is done.
And now it say boot sector error :(
[ it's not MagiC... because the spare hdd does not have MagiC on it ].
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

Latz
Captain Atari
Captain Atari
Posts: 157
Joined: Tue Mar 08, 2011 6:02 pm
Location: Germany
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby Latz » Mon Oct 15, 2012 2:38 pm

Oh SH....
Sounds like a hardware problem :(
Is your PSU ok?

Latz
Falcon/CT60, 14+128 MB RAM, CTPCI/Radeon 9250,
EtherNeC, Carte Eiffel+LCD, 80GB IDE HD, DVD-RW.
Falcon/CT63, 4+128 MB RAM, CTPCI/Radeon 9250,
NetUSBee, Carte Eiffel+LCD, 40GB IDE HD, CD-RW.

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11855
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Atari Themed Clock face - chimes, alarms and mouse fix

Postby wongck » Mon Oct 15, 2012 3:01 pm

bad bad bad.... I started another thread viewtopic.php?f=97&t=24049&p=218646#p218646
My Stuff: FB/Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list


Social Media

     

Return to “Professionals”

Who is online

Users browsing this forum: No registered users and 3 guests