Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: GPU Spikes to 100% when loading textures ONLY outside of visual studio  (Read 1154 times)

0 Members and 2 Guests are viewing this topic.

_Fiction_

  • Newbie
  • *
  • Posts: 35
    • View Profile
Hi, I have been working on game for awhile using visual studio and SFML. I do not have any problems running the game in either debug or release mode within visual studio. However, if I grab the exe and dlls and try to run it outside of the development environment, things get weird. It can load some textures, but if it loads a decent amount, I get a sudden spike to 100 percent "3d" on my GPU and the game crashes with out of memory errors when loading textures. I have included a screenshot as the first attached image. I am bothered because when other people run my game on their computers, they do not have this issue. I don't understand how the game works normally in the dev environment on my computer, and also on other people's computers outside of the dev environment, but not on mine. The 2nd image shows what the GPU looks like while loading textures while I run the build in visual studio. Does anyone have any ideas why this could be happening? It seems extremely bizarre. I have updated my graphics drivers but do not know how else to proceed. Any help is massively appreciated!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: GPU Spikes to 100% when loading textures ONLY outside of visual studio
« Reply #1 on: January 21, 2024, 09:31:17 pm »
Do you have dual GPUs (e.g. Intel + Nvidia)?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

_Fiction_

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: GPU Spikes to 100% when loading textures ONLY outside of visual studio
« Reply #2 on: January 23, 2024, 11:44:08 pm »
Nope. Device manager shows just: NVIDIA Geforce GTX 1060 6GB

_Fiction_

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: GPU Spikes to 100% when loading textures ONLY outside of visual studio
« Reply #3 on: January 31, 2024, 12:41:35 am »
BUMP

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: GPU Spikes to 100% when loading textures ONLY outside of visual studio
« Reply #4 on: January 31, 2024, 09:54:06 am »
No idea either.

What kind of texture are you loading?
What if you run it with a debugger attached outside of VS?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/