Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: ShivanSpS on March 26, 2018, 12:18:38 am

Title: AVX vs AVX2
Post by: ShivanSpS on March 26, 2018, 12:18:38 am
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?
Title: Re: AVX vs AVX2
Post by: DahBlount on March 26, 2018, 03:45:38 pm
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).
Title: Re: AVX vs AVX2
Post by: ShivanSpS on March 26, 2018, 07:14:20 pm
Oh this is nice, for a moment i trought it was a "placebo" effect, but you can notice the change in game.
Title: Re: AVX vs AVX2
Post by: AdmiralRalwood on March 29, 2018, 07:16:52 pm
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 (https://github.com/scp-fs2open/fs2open.github.com/pull/1372) adding AVX2 support.
Title: Re: AVX vs AVX2
Post by: WhiteFox on April 13, 2018, 09:02:46 am
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 ?