🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Exe compiled on AMD machine slow on Intel machine

Started by
9 comments, last by ddlox 3 years, 6 months ago

Hi,

I compiled my game on an AMD machine for years

when I run the AMD builds on my new Intel machine the builds run slow

If I recompile the code on the Intel machine the builds run at the correct speed

Any ideas?

cheers

Reject the basic asumption of civialisation especially the importance of material possessions
Advertisement

basically what has happened in this case is gremlins did not relocate with you -lol-

please clarify:

  • in your game code, did u or did u not optimise for AMD ?
  • have u used instructions which were AMD arch specific ?
  • is your code written in early C, early C++98 or any C++ earlier than C++0x, c++11?
  • have u updated your code to the latest C++ v17 or v20?
  • or are u using Java ?
  • have u updated to the latest Java SDK v15…..?
  • have u updated to the latest JRE 8.21u?
  • does your code contain ASM wrapped instructions such: asm mov ecx, 100
  • basically u haven't told us enough and left us guessing, why?

Cacks said:
Any ideas?

no, help us please, tell us everything, tell us the whole truth;

until then ?

@ddlox

It's Visual C++ 2019, no AMD specific code, no assembly code, C++ 17, no managed C++

I'm guessing the compiler compiled it specifically for AMD?

Reject the basic asumption of civialisation especially the importance of material possessions

you again! usually people reply like 2 or 3 days later ?

you're still not saying everything…

make sure these are set in your properties → c/c++ → all options:

  • /std:c++17
  • /Ot
  • /arch:SSExx or AVXxxx (whichever one is your fancy)

make sure you are not running a DEBUG version of your code

make sure you are not running on an installed DEBUG version of Directx or OGL (or else whichever you're using);

make sure your driver is updated and not buggy, faulty of sort;

if all else fails, yr gonna have to dig in your code and add chronos to check which part of the code is running slow

dig in! ?

@ddlox

I'm building release mode

what's /Qt option?

I have enabled the other 2 flags, it'll take me a while to check, cheers

Reject the basic asumption of civialisation especially the importance of material possessions

What about performance with code compiled on the Intel running on the AMD?

🙂🙂🙂🙂🙂<←The tone posse, ready for action.

/Ot not /Qt: favor fast code

Cacks said:
I have enabled the other 2 flags, it'll take me a while to check, cheers

good ?

@ddlox

found it: last PC was an AMD APU, current PC has NVidia discrete graphics card

NVidia control panel rendering at high quality slowing down my game ticks

cheers

Reject the basic asumption of civialisation especially the importance of material possessions

@fleabay

I reduced the render quality settings on NVidia control panel & performance is good again

I will investigate more in future, cheers

Reject the basic asumption of civialisation especially the importance of material possessions

well done, thanks for sharing your findings

have fun ?

This topic is closed to new replies.

Advertisement