You Are Here:

Community: Developer Discussion Boards

#1 Old drawPixels execution time too big - 2004-01-20, 16:33

Join Date: Jan 2004
Posts: 4
cristescupetru
Offline
Registered User
Hello,

I'm developing a game using raycasting alghoritm.My problem is when i call drawPixels(..) The execution time is somewhere around 130-140 ms only for a simple drawing.

I'm using Series_60_MIDP_Concept_SDK_Beta_0_3_1_Nokia_edition.The format of my call is like below:


short[] shortarrayImage ;
........

paint(Graphics graphics_Frame)
{
//made calculations
DirectGraphics dg=DirectUtils.getDirectGraphics(graphics_Frame);
dg.drawPixels( shortarrayImage ,false,0,FrameWidth,0,0,FrameWidth,FrameHeight,0,dg.getNativePixelFormat());
}

I need a smaller value and i don't know where the problem is.

I'm using getNativePixelFormat() to avoid runtime conversions so i think this is not a problem.

Can anybody help me and tell me where the problem may be.


10x in advance
Reply With Quote

#2 Old 2004-01-20, 17:54

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
Have you tried on an actual device (or a newer emulator at least)? I think that emulator is just slow.

shmoove
Reply With Quote

#3 Old 2004-01-22, 12:17

Join Date: Jan 2004
Posts: 4
cristescupetru
Offline
Registered User
Yes, i also put application on a real phone(nokia 6100) and it is working in the same way or even slower.

I'm curious if others used this function (for sure) and how they manage to get 10-20 ms.....

10x
Reply With Quote

#4 Old 2004-01-22, 21:19

Join Date: Jul 2003
Posts: 17
Location: Tulsa, OK
jameswmohr
Offline
Registered User
I've run drawPixels on a 3650 drawing full screens in paint() and got similar results. It took it 130 ms to draw with transparency, 80 ms without. I suspect drawPixels is better for drawing small patches and full screens should be left to drawImage.
Do you have reason to believe this should be faster? Like are there demos out there where people are drawing things much faster with drawPixels?
Reply With Quote

#5 Old 2004-01-23, 14:51

Join Date: Jan 2004
Posts: 4
cristescupetru
Offline
Registered User
My problem is that i'm writing a game and i need complete a complete redraw of screen faster(let's say 10-12 fps).I see one application who run very fast with drawPixels so i have the reason to belive that is possible to redraw a scene much faster than 130 ms but i think is a trick and we don't know how.So if somebody knows how to get for drawPixles() 10-20 ms please leave a message here or at least tell me from where can i get documentation to learn how to do this.

10x in advace

PS:What about nokia guys.They don't read this messages from forum?Why they don't answer?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ