Graviteam
March 29, 2024, 11:35:39 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: 3 LOD's  (Read 18751 times)
0 Members and 1 Guest are viewing this topic.
Kyth
Generalfeldmarschall
*****
Posts: 2044


« on: September 04, 2012, 04:23:54 AM »

Good evening gentlemen,

I'd like to address another pet peeve of mine, namely the absence of 3 LODs in many of the newer tank models. I believe the additional workload on the GPU puts a big cramp on framerates. Some of the worst offenders in this respect are the Soviet multi-turret tanks and German big-cat tanks. Surprisingly, the number of rivets on the Panzer 38t also puts this little tank over the top.  Shocked

This is a call to arms! Who would like to join me in revising / reworking those models?
Logged

"What am I, chopped liver..?"

"Yes."
Donken
Generalmajor
*
Posts: 460


« Reply #1 on: September 04, 2012, 12:46:49 PM »

Sign me in Sir!
Logged

The real heroes are those that never came back.
Littlebro
Oberstleutnant
*****
Posts: 123


« Reply #2 on: September 04, 2012, 02:45:31 PM »

Great to hear as ive noticed some slow downs in some of my larger battles,also does all the flora have 3 LOD's as ive noticed some difference when using different season mods.
Logged
Donken
Generalmajor
*
Posts: 460


« Reply #3 on: September 04, 2012, 02:56:32 PM »

Great to hear as ive noticed some slow downs in some of my larger battles,also does all the flora have 3 LOD's as ive noticed some difference when using different season mods.

What i have seen grass is using 2 lods, most bigger stuff like tree:s is using 3 lods
Logged

The real heroes are those that never came back.
frinik
Generalfeldmarschall
*****
Posts: 3145


« Reply #4 on: September 04, 2012, 04:42:43 PM »

Would love to join but I have no knowledge in such matters so unless somebody can tutor me.....
Logged
Kyth
Generalfeldmarschall
*****
Posts: 2044


« Reply #5 on: September 07, 2012, 04:19:40 AM »

Okay, here's the plan:

We'll work our way down the most popular tanks, which happen to be the heavy tanks (both sides!) This should help the greatest number of players in the shortest amount of time.

Timeline: Indefinite. All I can promise is that something will be done!
Logged

"What am I, chopped liver..?"

"Yes."
frinik
Generalfeldmarschall
*****
Posts: 3145


« Reply #6 on: September 07, 2012, 04:07:15 PM »

How big is the drag on fps between models with 2 LODs vs those with 3?Huh??
Logged
Kyth
Generalfeldmarschall
*****
Posts: 2044


« Reply #7 on: September 07, 2012, 04:15:53 PM »

How big is the drag on fps between models with 2 LODs vs those with 3?Huh??

No idea, it seems to be an overall effect. However, you could try it out by changing the tech config files, each of them has a line with the number of LOD's, 
Logged

"What am I, chopped liver..?"

"Yes."
Rends
Generalmajor
*
Posts: 300


WWW
« Reply #8 on: September 07, 2012, 04:41:32 PM »

Guess it would be easier to check the LOD switch distances.
Next place let say 30 tanks in the distance of LOD1 in a Test mission. Then in LOD2 and last in LOD3.
Compare the fps of each mission and you have the differences.

But having more than one LOD is not a framerate only thing. More LODs means also less Gpu RAM usage and more stable running missions.
Logged

Fight blood cancer register at : http://www.dkmsamericas.org/
frinik
Generalfeldmarschall
*****
Posts: 3145


« Reply #9 on: September 08, 2012, 01:38:44 AM »

Actually that was my next question.I have noticed that you can change the LODS but the change is not permanent I assume????Otherwise all we would have to do would be to manually modify the number of LODs and you guys wouldn't have to work on it right?Huh? Grin
Logged
Kyth
Generalfeldmarschall
*****
Posts: 2044


« Reply #10 on: September 08, 2012, 02:27:01 AM »

The LODs are switched based on distance from the viewer. The standard settings in config.engcfg are 25m and 150m. It might be possible to add yet another LOD distance after that, but apparently it isn't used:

Code:
i_scene:scene()
{
//äèñòàíöèÿ ñìåíû îäíîãî óðîâíÿ íà äðóãîé, ì
lod_dist0 = 25.000000;
lod_dist1 = 150.000000;
lod_dist2 = 0.000000;

The 3-D model has to contain those LODs, otherwise the switches wouldn't happen.
 
Also, the tech_cfg files have a line to specify the number of LODs in the model:
Code:
mesh_lods= 3;

It you have a 'mesh_lod' setting of 1 for a 3-LOD model, the switching doesn't happen. If you try the reverse, a 'mesh_lod' setting of 3 for a 1-LOD model, the mission simply fails to load up.

« Last Edit: September 08, 2012, 02:48:47 AM by Kyth » Logged

"What am I, chopped liver..?"

"Yes."
frinik
Generalfeldmarschall
*****
Posts: 3145


« Reply #11 on: September 08, 2012, 07:36:13 AM »

OK so what happens if you enter a value for the lod_dist2 for example?Let's say you ascribed a value of 500.000000; and then save the change?Huh?

Wasn't there a guy last year who suggested changing the lod distance value for the flora or something?Huh?
Logged
Kyth
Generalfeldmarschall
*****
Posts: 2044


« Reply #12 on: September 08, 2012, 08:23:22 AM »

OK so what happens if you enter a value for the lod_dist2 for example?Let's say you ascribed a value of 500.000000; and then save the change?Huh?


Say, could you try it out and see what happens?  Grin
Logged

"What am I, chopped liver..?"

"Yes."
murkz
Oberstleutnant
*****
Posts: 196


WWW
« Reply #13 on: September 08, 2012, 10:51:06 AM »

with this setting, not a lot of difference after a quick test (1min)

   lod_dist0   =   250.000000;
   lod_dist1   =   500.000000;
   lod_dist2   =   0.000000;




« Last Edit: September 08, 2012, 11:08:59 AM by murkz » Logged

Kyth
Generalfeldmarschall
*****
Posts: 2044


« Reply #14 on: September 08, 2012, 11:20:49 AM »

with this setting, not a lot of difference after a quick test (1min)

   lod_dist0   =   250.000000;
   lod_dist1   =   500.000000;
   lod_dist2   =   0.000000;



The tank models in the pictures have only 1 LOD; the lod_dist settings probably won't have any effect on them. The trees and grass are low-poly, so the settings won't produce much of a change.

I think that with the original 3-LOD tanks like the Panzer III, IV, T-34 and KV-1, you might start to see some effect,
Logged

"What am I, chopped liver..?"

"Yes."
frinik
Generalfeldmarschall
*****
Posts: 3145


« Reply #15 on: September 08, 2012, 11:28:34 AM »

OK did my own test.

I added the value 500.000000 to the lod_dist2 left the default values of 25 and 125to lod_dist0 and 1 and played the 5 October Tiger II Ultimate mission for 10 minutes  before and after making the change.I picked that one because it's got shelling, planes strafing, lots of trees, grey cloudy weather and lots of trees, vehicles, infantry and artillery. I could see a difference; a gain of my be 10% in fps from an average of 24 to 26 and above... I would need to test more to see if it's merely normal fluctuation or a real permanent improvement....

My suggestion is for 4 or 5 of us to make the same changes , test with the same missions and then compare notes to see if there are consistent results or if Murkz' and my own results are just fluke....
« Last Edit: September 08, 2012, 11:36:48 AM by frinik » Logged
Littlebro
Oberstleutnant
*****
Posts: 123


« Reply #16 on: September 08, 2012, 12:08:46 PM »

Hi ive just tried it my self and i saw an 8%increase.
Logged
Littlebro
Oberstleutnant
*****
Posts: 123


« Reply #17 on: September 08, 2012, 12:13:09 PM »

think i will try these settings in my modded hertzer mission,ive noticed a few slow downs and had a couple of rtd's as its a very intense mission with a lot of added shelling and more russian mixed tank platoons.
Logged
Kyth
Generalfeldmarschall
*****
Posts: 2044


« Reply #18 on: September 08, 2012, 12:53:31 PM »

I'm guessing that with lod_dist2 set at 500, many objects will start disappearing at 500m or greater.
That could account for the slight inprovement in performance,  Cheesy
Logged

"What am I, chopped liver..?"

"Yes."
frinik
Generalfeldmarschall
*****
Posts: 3145


« Reply #19 on: September 08, 2012, 02:49:27 PM »

MMMMMM if you theory is correct Kyth then the default value which is set at 0.00000000 would mean what?Huh??? That none disappears no matter the distance.....
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Simple Audio Video Embedder
Valid XHTML 1.0! Valid CSS!