This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Problem with timer :(


Problem with timer :(

Postby seb0uille » Sep 27, 2003 @ 10:52pm

seb0uille
pm Member
 
Posts: 18
Joined: Aug 4, 2003 @ 3:14pm
Location: Massy, France


Postby ppcStudios » Sep 27, 2003 @ 11:13pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby denthorq » Sep 28, 2003 @ 1:04am

It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Postby seb0uille » Sep 28, 2003 @ 11:41am

seb0uille
pm Member
 
Posts: 18
Joined: Aug 4, 2003 @ 3:14pm
Location: Massy, France


Postby denthorq » Sep 28, 2003 @ 4:21pm

I think that wont work with MultiThreading :-( I tried that with my other game using the MT but it behaves crazy hehe
It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Postby ppcStudios » Sep 28, 2003 @ 5:02pm

I'm not sure if the 2.0 multithreaded behaves the same (I haven't tested it), but under GD1.04 the timer works fine with the multithreaded framework (both pocketPachisi and 5 Card Spin use it). You might try creating the timer on the first pass through ProcessNextFrame to ensure you are on the draw thread. You can do this by testing if m_timerID == 0 in ProcessNextFrame and creating then creating it. As long as m_timerID > 0 then you won't recreate the timer.
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby seb0uille » Sep 28, 2003 @ 5:57pm

Thanks for your help, but...
- It didn't work with MT, even when I created the timer in ProcessNextFrame

- I tried to replace CGapiApplicationMTWithSound by CGapiDrawApplicationWithSound (the one that should be single threaded) but despite my efforts it wouldn't compile :(
I'm still using 2.01b, maybe there's something with that.

I enventually decided to give up trying to add sound for the game...
seb0uille
pm Member
 
Posts: 18
Joined: Aug 4, 2003 @ 3:14pm
Location: Massy, France


Postby denthorq » Sep 28, 2003 @ 8:11pm

Post your code or drop Gersen a note. This will help especially there are readers here who can help you. I'm using Hekkus and it's great :-)
It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Postby mcode » Sep 1, 2004 @ 2:39pm

mcode
pm Member
 
Posts: 4
Joined: Sep 1, 2004 @ 2:15pm


Postby Pejo Software - Per » Sep 1, 2004 @ 3:29pm

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby gersen » Sep 1, 2004 @ 4:09pm

If someone is still interested I have updated my GapiDraw+Hekkus sample (GD 3.01b and Hekkus 0.99.x).
Later I will add a sample for GD 3.5.
You can find all on my website.

Have fun :)
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby mcode » Oct 13, 2004 @ 8:17pm

mcode
pm Member
 
Posts: 4
Joined: Sep 1, 2004 @ 2:15pm


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron