|
|
User login
Feeds |
"Vertical Retrace" (Series 60)
|
|||||
| Tue, 2003-04-08 18:23 | |
|
Hi! I am looking for a way to sync my graphics drawing to the refresh of the screen. Currently I am not incorporating Direct Screen Access but am already getting about 60fps. The problem with this is that when the whole screen is moving (eg. scrolling) ugly tearing effects are visible. My guess is the DMA controller used to transfer memory to the screen is just much too slow. At least in the n-gage specs it is stated that just 30 fps are possible. I am now looking for a way to sync my drawing to the screen refresh. Is there a way to do this? tnx, zeep zeep |
|
Forum posts: 37
For this question, I think you can find a way to access screen memory directly in the example `9210game' at www.symbian.com
But during my coding in this way, I met some strange matter...
Regards,
ouseka
ouseka
Forum posts: 9
Forum posts: 31
I don't think the screen refresh is 64hz. The system timer of Series 60 devices ticks at 64hz. This probably explains the usage of this value in the example (which btw is tearing HORRIBLY on my phone).
As it's stated in the n-gage faq:
The display is 176 x 208 pixels in size. It supports 4,096 colors (12 bits). The maximum frame rate is 30 frames per second.
I think 30fps is pretty poor for a games device (GBA does ~50fps).
Your suggestion to block interrupts seems the way to go. Do you know how to accomplish that?
zeep
Forum posts: 1
But gba is a real console
Forum posts: 363
As far as I know, there is no way you can obtain a vertical retrace notification on any of the current Symbian devices. This is based on what I know about hardware interfaces and the devices drivers for the display controllers.
I really would like to be proven wrong
Regarding the interrupts, stopping them is an questionable idea really - it would make the whole phone side ( the custom OS side ) probably crash. You could not do this anyway without writing kernel-side code ( a device driver ).
Cheers,
Pawel
As far as I know, there is no way you can obtain a vertical retrace notification on any of the current Symbian devices. This is based on what I know about hardware interfaces and the devices drivers for the display controllers.
I really would like to be proven wrong
Regarding the interrupts, stopping them is an questionable idea really - it would make the whole phone side ( the custom OS side ) probably crash. You could not do this anyway without writing kernel-side code ( a device driver ).
Cheers,
Pawel