Author Topic: Optimization  (Read 5785 times)

Offline guiloic

  • byte
  • *
  • Posts: 24
    • View Profile
Optimization
« on: May 21, 2006, 05:14:14 pm »
How can I improve performance of my renderer ?

by reducing quality ?
ww.devcat.org

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Optimization
« Reply #1 on: May 21, 2006, 05:29:47 pm »
Using which renderer? Software?

Offline guiloic

  • byte
  • *
  • Posts: 24
    • View Profile
Optimization
« Reply #2 on: May 21, 2006, 06:03:44 pm »
I use IRenderer.RENDERER_OPENGL (hardware ?).
ww.devcat.org

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Optimization
« Reply #3 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!!!!!
Nada por ahora

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Optimization
« Reply #4 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?

Offline guiloic

  • byte
  • *
  • Posts: 24
    • View Profile
Optimization
« Reply #5 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)).
ww.devcat.org

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Optimization
« Reply #6 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.
Nada por ahora

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
Optimization
« Reply #7 on: December 09, 2006, 08:24:51 pm »
May I also call attention to Thread.yield()
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG