Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Please help. Speed problem.....


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2008, 01:13 PM
Newbie
 
Join Date: Mar 2008
Posts: 9
Default Please help. Speed problem.....

Hello all,

I need some help.
I'm making some GPS software, and now i wat to show a compass needle.
I first tried it with 2 image controls. One would be invisible and contain the original image, the other would contain a rotated version using the FastRotate from the DZImage lib using the heading degrees for the rotating. This however would result in a memory error after a minute or 2.

So i tried another approach. I generated 361 images (for 0 to 360 degrees) and embedded them in one file.
Now when the program loads, it takes a long time to load them into an imagelist (using retreiveimage). Is there not a faster way to do this?
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 01:36 PM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Default

TARQ

In erel's gps4ppc source code is a fine example of a compass.

http://basic4ppc.com/forum/showthread.php?t=400


__________________
Using 6.30
dennishea
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 01:46 PM
Newbie
 
Join Date: Mar 2008
Posts: 9
Default

Ah, Thanks. Missed that one.....
Reply With Quote
  #4 (permalink)  
Old 04-25-2008, 05:17 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 53
Default

If you want to rotate the Compass picture it works very well with

Sub Rotate (course)
degree = 361 - course
Image25.Image = dr.FastRotateImage(Image26.Image, degree)
End Sub

dr. from dzImage
sorry it works only in the interpreter version not in the compiled version.
Georg

Last edited by Georg : 04-25-2008 at 07:14 AM. Reason: Mistake
Reply With Quote
  #5 (permalink)  
Old 04-25-2008, 07:45 AM
Newbie
 
Join Date: Mar 2008
Posts: 9
Default

No Problem Georg. I already got a working solution derrived from the info from dennishea.

Thanks
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Benchmark speed? DaveW Basic4ppc Wishlist 4 11-07-2008 08:57 AM
Speed of the compiled application? JamesC Questions & Help Needed 5 03-13-2008 12:59 AM
Speed of dynamic control creation willisgt Questions & Help Needed 4 12-05-2007 02:52 PM
Speed grgczyz Basic4ppc Wishlist 3 05-31-2007 01:55 PM
Control Speed of car JJM Share Your Creations 0 05-27-2007 03:40 PM


All times are GMT. The time now is 02:11 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0