Page 1 of 1

My Blender age is causing game lag

PostPosted: Mon Jun 10, 2013 3:19 pm
by Jakuru
I have roughly 15,000 verts in my age, all UV mapped and textured. After it's exported to Chronicles causes game lag that is impossible to navigate. I Googled help on this subject and could'nt find the answers I was seaching for. I know I'll find answers with you good folks. I've tried a number of settings in Blender trying to solve this problem with no luck. I'm using Blender 2.49b with PYPRP 1.6 on my Win 7 PC. The strange thing is that my old XP has no lag in game.

Re: My Blender age is causing game lag

PostPosted: Mon Jun 10, 2013 4:29 pm
by Calena
Standard protocol is to count polys, not vertices. I'm going to assume you have less polys than vertices since a poly needs a minimum of three vertices. That is a VERY small age to be getting lag in already. First two culprits to check are how you set up collision and whether or not you have run-time lighting in the age. I'm hypothesizing on what could possibly cause lag in an age that tiny and the only theory I can think of is:

1 - you have triangle mesh collision on everything, plus
2 - you have every material set to utilize in-game lighting, plus
3 - you have a waveset, plus
4 - you have shadows on your avatar, and maybe
5 - there's also something else animated on link-in
OR
6 - you have a 20 year old computer :)

Have you always had the lag or has it started recently? Can you do a trace back and determine when the lag started? Are you saving your builds in increments (a LOT of increments)?

Sorry that I have more questions than answers, but the only way to find a solution is to get to the root cause.

Re: My Blender age is causing game lag

PostPosted: Mon Jun 10, 2013 4:42 pm
by Jakuru
Well I'm using Win 7, 1.5 years old now. I don't have wavesets or shadows yet. Static triangle mesh is set to about 9 objects. Lighting is not a factor at this point yet but there is an animated wheel turning 360 degrees in the distance.

Re: My Blender age is causing game lag

PostPosted: Mon Jun 10, 2013 4:46 pm
by Tsar Hoikas
I think by #2, Calena meant: make sure you turn off SADBUF on all of your materials. This setting causes lots of lag and is on by default.

Re: My Blender age is causing game lag

PostPosted: Mon Jun 10, 2013 5:01 pm
by Jakuru
Hoikas, turning off Shadbuf for every object worked and the lag has disappeared, thankyou my friend. Also thanks to Calena.
I hope this post helps others with the same problem using Blender.