www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: guiloic on May 21, 2006, 05:14:14 pm

Title: Optimization
Post by: guiloic on May 21, 2006, 05:14:14 pm
How can I improve performance of my renderer ?

by reducing quality ?
Title: Optimization
Post by: EgonOlsen on May 21, 2006, 05:29:47 pm
Using which renderer? Software?
Title: Optimization
Post by: guiloic on May 21, 2006, 06:03:44 pm
I use IRenderer.RENDERER_OPENGL (hardware ?).
Title: Optimization
Post by: Melssj5 on May 22, 2006, 01:31:20 am
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!!!!!
Title: Optimization
Post by: EgonOlsen on May 22, 2006, 05:59:53 pm
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?
Title: Optimization
Post by: guiloic on May 24, 2006, 10:50:04 pm
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)).
Title: Optimization
Post by: Melssj5 on May 25, 2006, 04:40:39 am
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.
Title: Optimization
Post by: cyberkilla on December 09, 2006, 08:24:51 pm
May I also call attention to Thread.yield()