Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Optimizing Tricks

Author
Message
Marvey
23
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 9th Feb 2003 00:17
Hi All.
Well i would like to see from you guys some technics to optimize the code. In my case i am doing a big city long time ago. And right now i have some probs with speed , whish the best operations to optimize like imagine i use like 1000 3d models on the game wish is the best technick to improve the operation for the 3d models and textures , i hope someone get show me some stuffs.
Well something you know about optimizing will be good to see! Sorry my bad english!
the architect
23
Years of Service
User Offline
Joined: 6th Jan 2003
Location: United Kingdom
Posted: 11th Feb 2003 01:31
if youve played operation flashpoint you will see that you can have 80-90 men in scene, with ample trees, buildings etc.

How do they do this?

Objects further away are represented by low res modals. As you get closer they are changed into high res models.
For example

A house down the road ia ascessable. However, until you get there, who cares if it is an empty box with a roof on. As the player gets closer swap it with a complex version you had hidden, as above.

In DBPro if you put your close up models in a position where the camera will never render them because thay are off screen this can help towards render speed.
Although I think hiding an object should do this but last time I checked it out the CPU behaved like it was still being rendered.

Also, if you reduce camera range this can improve performance, however I think a bug does not allow this to work at the moment. ie the clipping function is not perfected. Maybe patch 4 will solve this? Fog can sometimes add atmosphere to your game...and hide the reduced camera range.


MOST IMPORTANT TIP I CAN GIVE U!!!
patch 4 will allow a 3d frame which runs at 20fps to run at 300 fps. If I'm wrong Lee Bamber will eat my hat!!!

the architect
23
Years of Service
User Offline
Joined: 6th Jan 2003
Location: United Kingdom
Posted: 11th Feb 2003 01:32
I'm not saying operation flashpoint can be made DBPro-I was pointing out one obvious technique they used!!!!!

Marvey
23
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 11th Feb 2003 20:45
hey
"Objects further away are represented by low res modals. As you get closer they are changed into high res models." yes i know that and i am using that on my game i have created 2 types of models the same models have 2 models 1 hight detaild and one low detailed i use the low detailed model when the player are away.

"Although I think hiding an object should do this but last time I checked it out the CPU behaved like it was still being rendered." well i am using too the hiden objects but is like you say i thing something is buged i have tested some stuffs and like you say he continue rendering.. and no wining frames

"Also, if you reduce camera range this can improve performance, however I think a bug does not allow this to work at the moment. ie the clipping function is not perfected. Maybe patch 4 will solve this? Fog can sometimes add atmosphere to your game...and hide the reduced camera range." well about camera range you mean low camera range right now i dont want to do that on the city i am doing i need a good camera range so i think this is not a good way in my project

"patch 4 will allow a 3d frame which runs at 20fps to run at 300 fps. If I'm wrong Lee Bamber will eat my hat!!!" well if this is true will be completly amazing!!

the architect
23
Years of Service
User Offline
Joined: 6th Jan 2003
Location: United Kingdom
Posted: 11th Feb 2003 21:15
check out the newsletter on the homepage. You will be pleasantly suprised.

Marvey
23
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 12th Feb 2003 00:04
checking it!

Fluffy Paul
23
Years of Service
User Offline
Joined: 16th Dec 2002
Location: United Kingdom
Posted: 12th Feb 2003 00:08
Don't forget to use occlusion.
In a complex city scene you can set most of the buildings to be occluders meaning that Dark Basic won't render any models on the other side of the building to the player - thus only the buildings in direct line of sight of the player at any one time are rendered.

Ending a sentence with a French word is so passé
Marvey
23
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 12th Feb 2003 16:13
Hey
Fluffy Paul yeah!! thiw will be exelente! but Dbpro have any command for that ? or i need to make a function ? if so can you give a litle help how to make the funcion ? thx

Login to post a reply

Server time is: 2026-07-05 16:27:19
Your offset time is: 2026-07-05 16:27:19