A password will be e-mailed to you.

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.

Pages: [1]
Author Topic: Frame Rates performance and Gauges
lionheart
Professional
Posts: 210
Send Message
lionheart
Post Frame Rates performance and Gauges
on: April 28, 2012, 14:43

I have been experimenting with some of the aircraft, trying to figure out why some that are less detailed then others also run slower. You would think that a super high detail plane (like the Maule) would run very much faster then the Carenado C-185F in P3D.

To note, the Carenado was running at about 8 to 9 FPS on my rig in P3D. The Maule was at 20, sometimes touching 19, rarely ever 18. So the Maule is running like glass, and to me, it has more details in the VC then the 185F. I also found that my own Aerospool Dynamic was running at just higher then the 185F, at about 10FPS.

I found that the Carenado had Bitmaps for textures in the folder system, even with bump mapping and such, all BMP's instead of DDS. I knew from following posts by Aces that DDS textures, flipped, run faster in the sim. To test this, I converted all textures in the 185F to DDS/Flipped, and it rose up about 1 to 2 FPS, now running at 10 FPS instead of 8. (Mind you, this is in an ORBX rich scenery environment, Diamond Point and Pacific North West scenery packages, so to be fair, this is in a RAM intensive environment).

But, oddly, the 185F was now running as fast as my Dynamic, which was pure FSX (except from the gauges, hold that thought). The 185F is a very beautiful model, very nicely done, but also not very sophisticated (technically speaking, the interior has less componentry then the dynamic, etc, etc). So I would think the 185F would be running at 20 FPS.

Then, it occurred to me. What if its the new FSX XML gauge coding. MS had redone the coding in XML to a new format, which I hated like crazy, like redesigning the wheel. This coding is also 'pure' FSX, which means it runs faster then the FS9 XML format.

I tested this. I renamed the 185F panel folder to OriginalPanel and dropped in a copy of the Maule panel folder, started up P3D, and Voila, 20FPS locked. The gauges were the culprit in keeping the frames from running high.

Its a let down for me, which means all my FS9 coded gauges in my fleet of a dozen product lines/aircraft lines would need to be totally rewritten to run as fast as possible. I love fast. Smooth frames are where its at. Not everyone can afford a powerful computer, (like me), so finding the best ways to run planes fast is a requirement.

So, that was my finding on why the 185F (and my Dynamic) run so dang slow in P3D. Gauges.....

Bill

FSMP
Professional
Posts: 638
Send Message
Post Re: Frame Rates performance and Gauges
on: April 28, 2012, 14:54

Quote from lionheart on April 28, 2012, 14:43

Then, it occurred to me. What if its the new FSX XML gauge coding. MS had redone the coding in XML to a new format, which I hated like crazy, like redesigning the wheel. This coding is also 'pure' FSX, which means it runs faster then the FS9 XML format.
Bill

Are you 100% sure of this. Isn't the FS9 XML schema just a sub-set of the FSX XML schema. I am not understanding the concept of "PURE FSX XML" .

Far more likely the differences are due to the design of the Coranado's gauge programming.

Geoff

lionheart
Professional
Posts: 210
Send Message
lionheart
Post Re: Frame Rates performance and Gauges
on: April 28, 2012, 15:20

Hello Geoff,

I hope you are having a good day.

I did not examine the Carenado code work.

lionheart
Professional
Posts: 210
Send Message
lionheart
Post Re: Frame Rates performance and Gauges
on: April 28, 2012, 15:28

Some differences in XML as shown;

FSX / P3D format XML;

        <Element id="Fire Bottle 1 Armed ON">
            <FloatPosition>215.000,63.000</FloatPosition>
            <Image id="Image" Name="annunciator_panel_1_annunciator_btl_1_armed_on.bmp">
                <Bright>True</Bright>
                <Transparent>True</Transparent>
            </Image>
        </Element>
        <Element id="Fire Bottle 1 Armed OFF">
            <FloatPosition>215.000,63.000</FloatPosition>
            <Image id="Image" Name="annunciator_panel_1_annunciator_btl_1_armed_off.bmp">
                <Transparent>True</Transparent>
            </Image>
        </Element>

FS9 format XML;

<Element>
    <Position X="149" Y="149"/>
    <Image Name="EPIC_ASI_Needle.bmp" PointsTo="North">
      <Axis X="12" Y="125"/>
    </Image>
    <Rotate>
      <Value Minimum="0" Maximum="300">
          (A:Airspeed select indicated or true, knot)
      </Value>
      <Failures>
        <SYSTEM_PITOT_STATIC Action="0"/>
        <GAUGE_AIRSPEED Action="Freeze"/>
      </Failures>
      <Nonlinearity>
        <Item Value="0" X="149" Y="23"/>
        <Item Value="40" X="177" Y="26"/>
        <Item Value="60" X="217" Y="45"/>
        <Item Value="80" X="256" Y="88"/>
        <Item Value="100" X="274" Y="154"/>
        <Item Value="120" X="259" Y="209"/>
        <Item Value="140" X="221" Y="252"/>
        <Item Value="160" X="162" Y="275"/>
        <Item Value="180" X="99" Y="267"/>
        <Item Value="200" X="54" Y="232"/>
        <Item Value="220" X="28" Y="188"/>
        <Item Value="240" X="22" Y="141"/>
        <Item Value="260" X="33" Y="99"/>
        <Item Value="280" X="54" Y="64"/>
        <Item Value="300" X="84" Y="41"/>
      </Nonlinearity>
      <Delay DegreesPerSecond="25"/>
    </Rotate>
  </Element>

Note; these are two totally different gauges, only comparing the < tags... >

Bill

FSMP
Professional
Posts: 638
Send Message
Post Re: Frame Rates performance and Gauges
on: April 28, 2012, 17:23

Yes... 1st one is FS9 schema, 2nd one is FSX schema

FS9 schema gauges will run in FSX, but FSX schema gauges will NOT run back in FS9.

So if you want to write just one gauge, that will work both in FS9 & FSX, you need to use FS9 schema.

Note: FS9 Schema XML will NOT compile to binary.

The P3D SKDs when describing the P3D XML gauge schema, have random inserted examples of Fs9 Schema code. ! ! !

The P3D SDK really should have P3D schema examples (not Fs9 examples), and it would greatly help, if the above information was included in the SDK.

Geoff

lionheart
Professional
Posts: 210
Send Message
lionheart
Post Re: Frame Rates performance and Gauges
on: April 28, 2012, 18:26

So, it was a good discovery to find this out, that it was the gauges causing the pull down on frame rates.

I wonder if there is a way to test the performance of the gauges, to actually see which one or few are causing the most pull down in performance? Is there a way to test this?

Bill

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.31 ; Page loaded in: 0.122 seconds.