A couple other tricks I'm using:
- Only render when the camera changes
- Toggle between BASIC and CORRECT_Z_ORDER renderers. Employ the simpler,
faster renderer when panning the camera, then switch to a more advanced
renderer (if necessary) for a final render once you stop moving
- If necessary, push objects which must be rendered often into their own View
object. In this way, you only need to render one object continually rather than
all of your objects
- If you need advanced physics calculations, do them in 2D with a good library
like APE, then use this to help control your 3D objects. Depending on your
project you may only need 2D physics.
- Keep the screen area to a minimum. The more screen space the more memory it
is likely to take for the display
- Turn off texture smoothing when necessary
- Use simple textures like a BitmapMaterial rather than MovieMaterial when you
can help it
On Sun, 10 Jan 2010 07:24:50 -0800, Jensa <[email protected]> wrote:
@Wenderson What you are asking is a very broad question and briefly
said "Simpler 3D graphics = higher FPS". There is no configuration you
can do in your Flash program. It's more about how you build your 3D
scene and how fast the machine playing it back is.
There are however many general tips and tricks such as:
- Make sure your models are heavily optimized. Few triangles = more
FPS
- Use as small textures as needed. Large textures takes longer to
process
- Try to avoid zooming very close onto models as that seem to decrease
speed
- In most circumstances, Away3D Lite is faster than the ordinary
Away3D version. It's less featured though, so make sure it has what
you need.
- Using the Pixel Bender based shaders can in many cases give you more
FPS since these are rendered on a second core in processors that have
more than one core (i.e. Dual core, Quad core)
- Don't try to use "real" 3D physics. It requires too much CPU and
won't work fast enough
Also make sure that you don't sell the project as PlayStation 3
quality. It is more likely to be like PlayStation 1 in terms of
graphics. Make sure you don't try to display complex models with many
thousands of triangles (polygons) and Flash should be able to do the
job. Testing, optimizing, testing, optimizing is eventually the key to
speed.
J
On Jan 8, 3:01 pm, Wenderson <[email protected]> wrote:
Is there any way to leave the fps in a Away3D work faster?? There is a
type of configuration recommended for the Flash program??