Author Topic: AVX vs AVX2  (Read 985 times)

0 Members and 1 Guest are viewing this topic.

Offline ShivanSpS

  • 210
I compiled a .exe from source today, VS 2017 compiled it by default on AVX2, and at first i did notice less fps drops while playing, i did a test and i was right, altrought this may not be the best test escenario it will have to do.


I ran this test 3 more times, always with the same result, less fps drops and more memory usage on AVX2.

I did notice the light is not exactly the same altrought it has the same launcher config, maybe there is something else on 3.8.1 that could be causing this?
« Last Edit: March 26, 2018, 08:59:17 am by ShivanSpS »

 

Offline DahBlount

  • 29
  • Alpine ☆ Cancer Tribulation
    • Minecraft
    • Skype
    • Steam
The difference in lighting is likely due to the move from Blinn-Phong to GGX shading.

We've actually been aware of the fact that AVX2 has fewer fps drops than AVX, there are multiple reasons for this, and some of them also coincide with increased memory, but that's a fairly normal tradeoff for better performance (ie. better performance can mean more memory usage).
<Axem> yet still more insightful than #hard-light

<Axem> jad2.23 will just be cat videos

<DahBlount> So
<DahBlount> JAD2.2 is like that
<Axem> maybe
<Axem> it can be whatever you like!
<DahBlount> A Chocolate Sundae?
<Axem> sure

My models: GTF Gilgamesh - GTD Nuadha [Redesigning] - Ningirama [WIP] - GTG Zephyrus

 

Offline ShivanSpS

  • 210
Oh this is nice, for a moment i trought it was a "placebo" effect, but you can notice the change in game.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
DahBlount was actually the first person to notice the performance difference when I gave him an AVX2 build for testing something else; the resulting graph (of the FPS differences) was included in the GitHub PR adding AVX2 support.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 
That testing looks nice,  but the GPU-Usage on AVX2 drops a few time to 0% ?!  It also uses less gpu-memory, but more RAM. Is AVX2 using more Cache-like mechanics ?
My english isnt very good. Please forgive me :)