Crystal Space
Welcome, Guest. Please login or register.
October 23, 2014, 09:53:06 pm

Login with username, password and session length
Search:     Advanced search
9010 Posts in 2044 Topics by 8800 Members
Latest Member: Xxbobo
* Home Help Search Login Register
+  Crystal Space
|-+  Associate Projects
| |-+  CEL Discussion
| | |-+  Low performance and crash
« previous next »
Pages: [1] Print
Author Topic: Low performance and crash  (Read 2532 times)
kiper
Newbie
*
Posts: 17


View Profile Email
« on: May 23, 2006, 02:30:07 pm »

HELLO!

How many meshes can I handle using CEL??
 
The problem is that I'm trying to put 100 meshes moving and at the beginning there is not problem. But when more or less 50 are moving against the wall (collider) the program begins to loose performance and with some more meshes the program crashes. Is the same when the meshes begins to collide between them.

The problem seems to be with pclinearmovement Collision Detection. When the CD box is not initiallized (pclinearmovement -> InitCD()) there is not problem.

I'm using the latest pseudo stable, CS and CEL.
1800 centrino laptop
Ati mobiliti radeon x700
1GB RAM
Win XP Home SP2


It shouldn't be computer's problem, so maybe I should update to the last snapshotof CD and CEL (where iPcLinearMovement class is changed)?
Logged

1800MHz Intel Centrino
1GB RAM
128 ATI Mobility Radeon X700
Win XP Pro SP2
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: May 23, 2006, 02:31:22 pm »

HELLO!

How many meshes can I handle using CEL??
 
The problem is that I'm trying to put 100 meshes moving and at the beginning there is not problem. But when more or less 50 are moving against the wall (collider) the program begins to loose performance and with some more meshes the program crashes. Is the same when the meshes begins to collide between them.

The problem seems to be with pclinearmovement Collision Detection. When the CD box is not initiallized (pclinearmovement -> InitCD()) there is not problem.

I'm using the latest pseudo stable, CS and CEL.
1800 centrino laptop
Ati mobiliti radeon x700
1GB RAM
Win XP Home SP2


It shouldn't be computer's problem, so maybe I should update to the last snapshotof CD and CEL (where iPcLinearMovement class is changed)?

Hmm maybe the overhead of doing the collision checks is starting to be too much. Not sure... Would be great if you could so some profiling here.

Greetings,
Logged
kiper
Newbie
*
Posts: 17


View Profile Email
« Reply #2 on: May 23, 2006, 07:18:10 pm »

I have tried changing the sizes of the CD boxes:

I'm using the tutorial of the CEL manual to change things over it. I'm using the monkey head to try. So:

this is the InitCD which is given in the entities file for this mesh. The program crashes.
pclinmove->InitCD (
              csVector3 (0.2,0.2,0.2),
              csVector3 (0.2,0.2,0.2),
              csVector3 (0,-0.3,0));         


I change the body size. The program crashes.
      pclinmove->InitCD (
              csVector3 (1,1,1),
              csVector3 (0.2,0.2,0.2),
              csVector3 (0,-0.3,0));

Changes in legs sizes. Crash in both.
      pclinmove->InitCD (
              csVector3 (0.2,0.2,0.2),
              csVector3 (1,0.2,1),
              csVector3 (0,-0.3,0));

      pclinmove->InitCD (
              csVector3 (0.2,0.2,0.2),
              csVector3 (1,1,1),
              csVector3 (0,-0.3,0));

Change in body and legs. IT WORKS!! (The frame rate is not really smooth with 100 monkey heads but playable)
      pclinmove->InitCD (
              csVector3 (1,0.2,1),
              csVector3 (1,0.2,1),
              csVector3 (0,-0.3,0));



I'm newbie and now I realize that don't understand how legs and body works, but anyway I don't see it very logic... Now the meshes itself are not touching the walls because of the body size, could be the reason??. =/


By the way, how can I check the frame rate??
Logged

1800MHz Intel Centrino
1GB RAM
128 ATI Mobility Radeon X700
Win XP Pro SP2
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #3 on: May 23, 2006, 07:25:36 pm »

Add -plugin=bugplug on the commandline to see framerate.

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.265 seconds with 16 queries.