Author Topic: Contrails and framerate issue's  (Read 4480 times)

0 Members and 1 Guest are viewing this topic.

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Contrails and framerate issue's
I've run in a weird issue which is easily reproduced, i've switched to RC3 recently. Can't say I noticed this before in the nightly build I was using (but then again, I didn't had the frame rate counter on most of the time)
The issue is as follows, with contrails enabled (min display speed 30 or so) place a bunch of fighters (4-8 or so) at a distance of 4000 clicks (any distance, as long as they dont attack you) with No initial orders and start the mission. When I do this, my frame rate drops to 60-70 (I dont have v-sync enabled) depending on the amount of ships on screen.
Now go back into fred and give all of these ships initial orders (attack, move to way point, whatever as long as they are moving around). When I do this my frame rate instantly restores to 114-120. As long as the AI ships are moving about. As long as even one of them is idiling about the frame rate drops by 20 or so

At first I figured this was because of my modding but it also happens in FS2 with just mediavp's enabled.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Contrails and framerate issue's
Could you provide a test mission?
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Contrails and framerate issue's
Let me get this straight.

You're complaining that the framerate drops from ~115 to ~65. When both are fast enough you can't even tell.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Contrails and framerate issue's
Could you provide a test mission?
certainly, i've attached it with this post.
Be sure to turn on the framerate counter (and the mediavp's I guess). and vsync off (easier to notice the frame difference with it turned off)

Let me get this straight.

You're complaining that the framerate drops from ~115 to ~65. When both are fast enough you can't even tell.
No dear sir 'I reside on a negative plane' Aardwolf. I'm not 'complaining' about anything here. Might I suggest you read my post again, a bit more carefully this time?

[attachment deleted by MSC
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Contrails and framerate issue's
'twas hyperbole.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Contrails and framerate issue's
'twas hyperbole.
Hyperboles and sarcasme can be hard to detect on the internet. And in this case it really didn't sounded much like a hyperbole but more like you didn't read what I wrote in the first place. That aside, are you actually going to have a look at it (and you know, be useful  :P )?
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Contrails and framerate issue's
Since you seem to have a reproducible situation I'd recommend filing a bug report in Mantis with the information you provided plus the test mission and possibly some screen shots. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Contrails and framerate issue's
Since you seem to have a reproducible situation I'd recommend filing a bug report in Mantis with the information you provided plus the test mission and possibly some screen shots. 
I'm still waiting for someone... Anyone to confirm this though. Perhaps its a driver issue on my end. I can't tell if nobody takes the time to try it out and post here..
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Contrails and framerate issue's
What happens if you give them no orders and then give them one after 10 seconds? Does the speed suddenly tank?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Contrails and framerate issue's
What happens if you give them no orders and then give them one after 10 seconds? Does the speed suddenly tank?
The framerate will take a significant hit for those first 10 seconds and will recover to normal speed again when they recieve the order.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Contrails and framerate issue's
I guess a video will speak louder then words. Though fraps is limiting the fps to 67 at the highest.
First ten seconds the mara's are idle and the frame rate is around 30-40 then after 10 seconds they all recieve orders to attack alpha 1 and the frame rate climbs to 67 (and once fraps turns off recording, its 120 again).
http://www.youtube.com/watch?v=ag1cI8QXIXg in HD the framerate counter should be visible.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Contrails and framerate issue's
I'll have to try reproducing this one. Add it to Mantis if you haven't already.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Contrails and framerate issue's
I tried to register an account for mantis but i'm not getting the confirmation mail
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Contrails and framerate issue's
confirmation mail for mantis never arrived (not in the junk or spam folder either)

Has anyone been able to confirm/reproduce this issue so far?
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Contrails and framerate issue's
Haven't had the chance so far unfortunately.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Contrails and framerate issue's
I can take a guess at this one...

If the ship's velocity is zero, in order to do the whole 'billboarding' effect, it might be trying to normalize a zero vector. This may not break anything, but I've observed in my own programs that when there are a lot of floating point operations with non-numerical values (i.e. NaN, inf, etc.), it's a lot slower than the same number of operations but with valid numbers.

 
Re: Contrails and framerate issue's
confirmation mail for mantis never arrived (not in the junk or spam folder either)

Has anyone been able to confirm/reproduce this issue so far?

We know - there's a mantis issue for this, and it is being worked on :P
STRONGTEA. Why can't the x86 be sane?