SFML community forums

Help => General => Topic started by: _Fiction_ on January 20, 2024, 04:45:53 am

Title: GPU Spikes to 100% when loading textures ONLY outside of visual studio
Post by: _Fiction_ on January 20, 2024, 04:45:53 am
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!
Title: Re: GPU Spikes to 100% when loading textures ONLY outside of visual studio
Post by: eXpl0it3r on January 21, 2024, 09:31:17 pm
Do you have dual GPUs (e.g. Intel + Nvidia)?
Title: Re: GPU Spikes to 100% when loading textures ONLY outside of visual studio
Post by: _Fiction_ on January 23, 2024, 11:44:08 pm
Nope. Device manager shows just: NVIDIA Geforce GTX 1060 6GB
Title: Re: GPU Spikes to 100% when loading textures ONLY outside of visual studio
Post by: _Fiction_ on January 31, 2024, 12:41:35 am
BUMP
Title: Re: GPU Spikes to 100% when loading textures ONLY outside of visual studio
Post by: eXpl0it3r 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?