Okay, let me start by saying that I’m not a noob. I’ve been using Blender for 4 years, and the GE for 3. Sorry for asking a question that sounds newby lol.
I’ve been working on a game for our programming club at school. It is the first game I have done in GLSL, and I’m really serious about the game. I’ve been doing everything possible to optimize performance, but there’s a problem. From the start, I noticed that physics is using more resources than everything else, which never used to be the case in previous games I’ve made. Now, it’s becoming a problem because the game lags at times. (Physics is taking up 90 - 95% of resources).
I have the landscape with triangle mesh bounds. I’ve been using a margin of .001 for everything that has collisions. My player has a cyllinder with 8 sides, set to triangle mesh as his bounds. I have enabled “ghost” on every object that I can. I’ve noticed that if I disable the physics check box on the materials, the physics resources goes way down… (below 10%). But then there aren’t any collisions.
Does this mean that the materials are what’s causing the huge resource usage? Should I use separate collision objects without materials? I disabled friction on all of the materials, which helped a bit. This is kind of a big issue, because we’re really serious about this game, and we aren’t going to make it at the scale we want to if it lags because of physics.