Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 09:02, 24 August 2007.

TSJ000561 - M3G performance hints for 3D hardware-accelerated devices (Nokia N93 and Nokia N95)

From Forum Nokia Wiki


Subject:

M3G performance hints for 3D hardware-accelerated devices (Nokia N93 and Nokia N95) TSJ000561

 

Platform(s):  Device(s), SW version(s):
S60 3rd Edition
S60 3rd Edition, FP1
Nokia N93, Nokia N95

Category:

Java

Subcategory:

Mobile 3D Graphics API

Description:

When using M3G on the Nokia N93 or Nokia N95, you need to be aware of certain performance-related pitfalls.
To begin with, there are some features that are radically more expensive on the Nokia N93 than on phones which have "software acceleration" only:
* CompositingMode.setColorWriteEnable(false)
* CompositingMode.setAlphaWriteEnable(false)
* PolygonMode.setTwoSidedLightingEnable(true)
* Graphics3D.bindTarget(Graphics)
* Graphics3D.bindTarget(Image2D)
* Graphics3D.setViewport(...) (in mid-frame)
* new Image2D(...)
* Image2D.set(...)
Some of these are going to be lesser problems on the Nokia N95, but you still won’t get the same performance as on other phones.
How to get around the issues:
* Keep color and alpha writes enabled in CompositingMode.
* Keep two-sided lighting disabled in PolygonMode.
* Use the OVERWRITE flag at bindTarget (note: not available on the Nokia N93).
* Clear the color buffer and depth buffer before rendering (especially on the Nokia N93).
* Do not use MIDP to draw 2D backgrounds. Draw them as texture-mapped quads instead.
* Unlike 2D backgrounds, 2D overlays carry no significant performance penalty.
* Keep the viewport full screen. In particular, do not change it while rendering.
* Use immutable (rather than mutable) Image2Ds wherever possible.

Creation date:

January 25, 2007

Last modified:

-
Related Discussions
Thread Thread Starter Forum Replies Last Post
Video decoder ominolego Symbian Media (Graphics & Sounds) 119 2008-04-09 08:02
MediaException N93 Lichtens Mobile Java Media (Graphics & Sounds) 2 2007-04-23 20:05
Issue with slow date operations on N95 redsmurph Mobile Java General 8 2007-12-24 17:15
[OGL S60 3rd Edition] White surfaces on example box Guruma Symbian Media (Graphics & Sounds) 5 2008-03-07 12:57
Export M3G files from Maya with M3GExport kishonti Mobile Java Media (Graphics & Sounds) 0 2005-03-13 20:58
 
Powered by MediaWiki