| Reply | « Previous Thread | Next Thread » |
|
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 |
| cristescupetru |
| View Public Profile |
| Find all posts by cristescupetru |
|
Have you tried on an actual device (or a newer emulator at least)? I think that emulator is just slow.
shmoove |
|
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 |
| cristescupetru |
| View Public Profile |
| Find all posts by cristescupetru |
|
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? |
| jameswmohr |
| View Public Profile |
| Find all posts by jameswmohr |
|
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? |
| cristescupetru |
| View Public Profile |
| Find all posts by cristescupetru |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|