Optimization

Started by guiloic, May 21, 2006, 05:14:14 PM

Previous topic - Next topic

guiloic

How can I improve performance of my renderer ?

by reducing quality ?

EgonOlsen

Using which renderer? Software?

guiloic

I use IRenderer.RENDERER_OPENGL (hardware ?).

Melssj5

What problems are you experiencing? would be helpfull too to post the resources used by your app. to check them go to the task manager, find the java process and look how much memory does it use and the procesor percentage!!!!!
Nada por ahora

EgonOlsen

First, you've to determine what exactly your performance bottleneck is. It would be helpful if you can give us your system's specs, most importantly the cpu and gpu specs. The bottleneck may either be in your system, your code or jPCT. In case of the latter, there are some things to consider before reducing polygon count (which will always help). You are rendering a landscape IIRC? If so, are you using octrees for that? How is your landscape organized? How many polygons do your models have?

guiloic

I've found the problem. It wasn't due to 3d rendering.

I have a multithreaded system (separate thread for physic and rendering) and that wasn't managed very well. Now, I've fix the problem by adding a simple Thread.sleep() which  allow indirectly the rendering thread to run faster (don't think that's dirty, I use a very very complex system and  I've found that was the unique solution (for the moment)).

Melssj5

Of course the sleep method allow the app to run faster if is used correctly, because let the procesor to asign quantums correctly to another processes and free some resources needed.
Nada por ahora

cyberkilla

May I also call attention to Thread.yield()
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG