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

Misc GapiDraw Questions


Misc GapiDraw Questions

Postby mlepage » Aug 23, 2003 @ 11:47pm

User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Misc GapiDraw Questions

Postby Kak » Aug 24, 2003 @ 12:07am

User avatar
Kak
pm Member
 
Posts: 291
Joined: Jul 26, 2003 @ 12:24pm
Location: Zannarkand, Spira


Postby DillRye » Aug 24, 2003 @ 3:50am

User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby mlepage » Sep 5, 2003 @ 11:55pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby InexorableTash » Sep 6, 2003 @ 2:35am

User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Postby mlepage » Sep 6, 2003 @ 4:35am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Sep 11, 2003 @ 4:19am

How do I create a new surface that is a copy of an existing surface? (Say, to take a copy of the back buffer.) Can I just use the copy constructor?
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby InexorableTash » Sep 11, 2003 @ 4:22am

Create a new surface the same width and height, and then BltFast.

(I would highly recommend against copy constructors being used for this sort of thing. C++ compilers like to use them in all sorts of places you wouldn't expect, and with a large memory copy you could find performance hits you weren't expecting.)
User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Postby mlepage » Sep 28, 2003 @ 6:05am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Johan » Sep 28, 2003 @ 11:27am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby mlepage » Oct 18, 2003 @ 5:41am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Feb 9, 2004 @ 5:10am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Feb 9, 2004 @ 6:18am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby InexorableTash » Feb 12, 2004 @ 5:31am

You don't have to use the CGapiApplication frame timer mechanism; I'd recommend either rolling your own, or instead of using frame ticks switching to absolute times (e.g. your high performance tick counts) to position items in the game world.

Think about this scenario: average frames take 20ms, per-frame time is set at 30ms (so 33.3 frames per second - that makes the other number round). So on average, the timer is going to sleep for 10ms per frame. Now you run into a frame that takes 45ms to render. Now, the timer would have to sleep for -5 seconds to catch up.

Most commercial games that I've seen either just "stutter" when there's an intense frame (e.g. the game slows down when there's lots of activity) or use absolute times (e.g. it takes 5 seconds for a ship to fly across the screen, whether that's 1 frame or 150 frames). In the latter case you probably want to cap the frame rate at some reasonable number so you're not consuming 100% CPU. The CGapiApplication timer seems to be an adequate implementation for both scenarios, but may not be for yours.
User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Postby mlepage » Feb 12, 2004 @ 6:26am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Next

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