Page 1 of 1

D3D9 3D experimental need a little advice [Slow down GPU]

Posted: 9. Feb 2016, 07:55
by pkedpker
I use the d3d9 3d experimental the fake d3d9.dll is what I use really.. and i noticed it really drains alot of GPU which often causes my computer to restart.. I would never have this problem using the GPU without the VM on the same 3d game.. I posted this question a few months ago on superuser stackexchange and ended up with -8 votes and unnecessary flaming/insults.. I figure this is the best place to ask.. I should of came here right away..

I'll copy/paste my question from superuser to over here..
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I run Oracle VM VirtualBox with 3d acceleration mode to run 3d games.

I could run the same 3d game maybe 3-4 of them with no problems without the VM, but I run it in VirtualBox to avoid the game picking up certain programs on my computer and sending them into the game using their anti-cheat, I ran wireshark and I seen my files were uploaded and sent to the game publisher which I don't want to risk it, I would lose many valuable things like my tools and it would cost me much sadness.

I fixed this problem running VM VirtualBox but now over time maybe 1-2 hours my computer would randomly glitch up on 1 sound for 3 seconds then do a complete reboot.. I have a 8 core xeon cpu and a 2 gb grahpics card, which is capable of handling these a bunch of these games on a dual-boot of a real windows 7 not emulated VM for over 24 hours no problem I believe.. but VM VirtualBox burns the GPU soo much that it can barely run 2 hours with just 1 game..

So I figure my game doesn't need any graphics to run.. it can handle the job without graphics I could inject direct 3d hooks like FRAPS etc.. and cripple the game to make it run in wireframe etc.. to remove the stress on the GPU I've done this and I managed to run it a bit longer maybe 3 hours but still the same result happens with overheating..

I figure logically the problem is constant stress with no breaks keeps the temperature values going up and up.. only way to solve this is to add maybe a 1-2 second sleep between every frame the GPU processes and maybe if possible drop frames that it couldn't process, just to keep the stress levels as low as possible on the GPU, I don't care If I can't see the game as long as it can run 24\7 I'd be happy.

If anyone knows how I can slow down the VM VirtualBox GPU any suggestions let me know. Thanks again guys

Don't think of me as a bad guy just because this sounded rude I fixed it, and keep your opinions to yourself, but you are just judging from your own view, past experiences, I know this all to well, Yes I may be bragging a little that's who I am :) I get many angry people at me from the game itself as well, but I learned to live with it and ignore the filth. I can tell after proof reading it, that it was rude okay but I fixed it up now

I'm trying to solve a problem here which will occur for me in the future with many other projects I might have.

I cannot run Sandboxie as this game requires driver loading (anti-cheat) support for it's privacy invasive rootkit, pretty much it robs people like me :)
Just because a game uses malware and forces players to live with that doesn't mean I have too let it enter my daily life as a virus I have to live with.
I used to help people too when I see them stuck with something and I still do when I have extra time.

The main purpose of the VirtualBox VM is to be minimized on my main computer running the game thus I never see the graphics doesn't matter if its automating something or just IDLING AFK in game with a shop opened up or something that's up to you to think what I use it for, anyways no need to burn out my GPU anyways! finally I made it clear without sounding like a bad person and I still deserve the -6 vote downs (used to be -8) seems some people are fearing god now haha? my mistake it's back to -7 again.

Thank you if anyone has any good advise let me know

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 9. Feb 2016, 17:13
by scottgus1
You need a tl;dr version :lol:

Sounds like you are overheating your gpu when you run a Virtualbox guest with the 3D additions. (Is this the "fake" d3d9.dll?)

I haven't heard of any posts mentioning Virtualbox 3D overheating anything on the host PC. A google search for "virtualbox 3d overheat site:virtualbox.org" turned up a hint of something eight years ago with overheating, but not with 3D.

Could be your video card is going bad and can no longer handle the higher stress. Try a stress test (Furmark or something), also see if you need extra or refreshed cooling.

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 10. Feb 2016, 09:39
by pkedpker
Hi first of all you don't pick a side, you side by it. :wink:
Also "get the coo, get the cool shoe shine"

Yeah d3d9.dll is wrapper for the original d3d9.dll which is pretty genius as this doesn't get picked up by commerical gameguards/anticheat tools as being illegal or a cheat how any other tools get picked up.. :lol: .

But yeah seems the VirtualBox itself runs completely off CPU emulation? doesn't even have any stress on the graphic card and if it does use the graphic card it uses it the proper way how any graphical software would use.. But this d3d9 seems like a hacked way of doing it and it seems to bypass it's execution caps where it actually drains soo much like a stress tool would.. it doesn't use a driver or anything to communicate with the GPU, but sadly the GPU still has issues with having too much load on it, As far as i know they didn't want this experimental feature to have any limits so it could reach very high fps so they cheated here to give it twice the amount of load to reach the same performance as it would originally.

I run my GPU on OclHashCat without VirtualBox and after 30 minutes it overheats and restarts so I know it's possible.

I wouldn't want to downclock my GPU just to make sure it doesn't do a unexpected restart of my computer overnight plus I never liked tools that mess with hardware settings because even if they have the buttons return to default settings.. those default settings are not really your default settings 99% of the time even if they are saved properly they are still precise and not exact how the manufacturer set them, usally they would use a float/double to store the gpu frequency, but those datatypes are far too small to store a hardware tweaked frequency cannot be matched back after messing with it by any software tool, this also goes for CPU slow down tools I used to use ages ago they do permanent damage de-synchronizations cant put it into words.

Any way I could patch the d3d9.dll tool to disable graphics/renderer from a hotkey? I would love this so much 8)

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 10. Feb 2016, 14:09
by scottgus1
if the wrapper d3d9.dll you mention is from Virtualbox, you will need to inquire of the developers for deeper insight into how it works. It may not work right in all situations, as they label it "experimental". You might contact them on their mailing list: https://www.virtualbox.org/wiki/Mailing_lists

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 10. Feb 2016, 15:03
by socratis
I highly doubt that the devs will help him cheat with his game. I might be wrong. Just my 0.02€.

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 10. Feb 2016, 15:07
by scottgus1
The description of pkedpker's issue is hard to follow, to me, but I think he's playing his game in a Virtualbox guest to keep other programs on his host from being recognized as cheats by the game. He seems to be implying that the Guest Additions 3D add-ins that he needs to run his game overheat his video card, like a stress test would.

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 10. Feb 2016, 19:06
by socratis
Unless pkedpker tells me
- what the game is, so I can research what they're doing, and
- why he thinks it sends unrelated stuff from his computer to a game server,
I call it that he wants to run the game in a mode not allowed by the developer. From his (cached) superuser question:
pkedpker wrote:not necessarily cheat, just automate the game
I'm willing to bet that this is not allowed by the game developer (aka cheating). That's why I believe that the question was removed from superuser as well...

Original: http://superuser.com/questions/1029835/ ... virtualbox
Webarchive: https://web.archive.org/web/20160204181 ... virtualbox

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 11. Feb 2016, 23:42
by pkedpker
Okay let me clarify somethings here, If I run 2 VM's with the game's just standing in the game town idling which isn't considered cheating but could be beneficial to the player as being away from keyboard increases your experience, after a hour maybe 3 hours the computer will restart even though the games are tabbed down (no graphics are supposed to be processed visually (but yes game controls this afaik), only internally I believe). If I do the same process without VM.. they could run infinitely, so this does affect the VirtualBox specifically as it overuses the needed resources. I know this can very well be used to improve cheating, then again I could save myself the trouble and buy another video card and split the load like that, but I like to optimize things haha and in this case trying to get the best wattage out for the most work done, the electrical bill will increase for no necessary purpose.. I mean the 1 graphic card without VirtualBox can handle 8 of these games tabbed down no problems.. yet VirtualBox can only handle 1 and just barely haha.

Just came to me.. what purpose does mutliple VirtualBox's serve with games running in each one, no one would be able to play all games simultaneously at once.. if you catch my drift, even if the game you try to open once says "The game is already running this cannot be done blah blah", this means nothing if Windows has a feature built in it that allows you to open the same process on multiple user accounts thus making this game is already running message redundant.

Off topic
-------------------------------
If I could avoid a Virtual Machine solution I would, but running the game in sandbox environment is not possible due to no support for drivers which I guess would bypass a sandbox environment to begin with.
Now if you wish to know about the Anti-cheat used it's XIGNCODE3 let me say even If I cheat XIGNCODE3 is completely useless to my tools as they are all custom made to begin with it only picks up tools that were shared among everybody like hyenas, But besides the point yes it does send out logs by scanning your computer for the newest files you have acquired which involves any new files.. pictures, programs, cheats, password manager files, credit card information. even though when I exposed this on the game community board by wasting tons of my time by decrypting the log files by using XorSearch yes I love this tool I wish it the best luck and hopefully in the future it would support nearly every encryption that's publicity available, I got lucky the log file was just a simple xor by some random key that increased, then to avoid grunt work I wrote a tool that decrypted the whole log file and posted it on the community, The kind of THANKS I got was in a form of lets jsut say I got severely disrespected my thread was edited by the staff members to cover up my information with a bunch of smiley faces, to imply me some anger, after a week later the Log files encryption was changed to the point I couldn't reverse it anymore with such a light way, only dissassembly now can achieve it now, I doubt they removed the logs which store all the files of your computer they just covered it up and tried to make it invisible again like any malware does, even though those log files were just text they already shared my paths which could be dangerous to me if my computer was rooted/exploited in some way, yes there were users supporting me on that thread saying they would get legal involvement etc, of course my purpose was more to the protection of my tools, they are all custom tools and are priceless to me.. I cannot afford them to get leaked from my computer. The game company has their own hands dirty and I am always the bad guy :lol: .

Personal reasons
-------------------------------
Again this might be rude to somebody who doesn't see the world how I do, But I don't allow myself to take garbage nonsense from things I am entitled too, this is one of many lively lessons I learned over my life and many times over :( and now I follow it myself.. whenever I take shit like someone has tries to show authority/bullying over me I only work harder for my goal to prove myself and completely spit on the filth in return.

When I used to live life back in the 1990's no one was trying to show they had more power over anybody I used to do whatever I wanted in the parks for example I used to climb the fence to the very top and enjoy myself it was more godly atmosphere, I recently during summer started going to parks and I get random robots approaching me trying to insult me that I cannot be in the park without a child? like they see me as a old man or something I of course completely ignore the filth but it's still interesting to me why they try to insult me in the first place instead of saying something nice.. I guess not many nice people left in my world, then again another park a month ago and police arrived with smiles on their faces and starting asking me for ID like I have to walk around the world with a ID lol that's pretty disrespectful to me I didn't show any ID of course they asked for cellphone I also didn't show any cellphone and they just left, a week later I go to the same park police arrive again (new guys) and I got a summons for 25$ for just going to the park.. they think they could make up rules on the fly to suit them yet to me these rules do not apply as I don't see them just in my eyes I just see them as a means to abuse me, I don't think my age has anything to do with anything it's just these people are trying more and more being robots and bullys and trying to bully anyone they still could, yeah it's probably goes very deep to the essence of my life, lesson with bullys, the devil, it was started building up ages ago when I bullied someone in my life.. and now it's at the point where bullies are around me 360

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 12. Feb 2016, 01:09
by socratis
Thank you for talking about my concerns. Since VirtualBox forums are not the place to analyze the behavior of unrelated software, I'll stick to the issue, as far as it's relationship has something to do with VirtualBox. If you want we can continue this discussion off-line. But, until I read (TL;DR) and digest your message, here's a (funny) story to ponder upon...

My x86, Win7-based PC is about 10 years old, but still running great (it cost me at the time about 4K). But, sometimes, usually when I was playing my favorite game, the computer would reboot. At random. Sometimes, the computer would reboot without playing or running anything. Long story short, the electrical heating in my house was turning on, affecting the overall voltage stability of the electricity in the house. Five power-supplies (and two hair transplants) later and I discovered the problem. I decided to play in ... warmer temperatures. With an external fan targeting the open (now) chassis of the PC. Problem solved ;)

Re: D3D9 3D experimental need a little advice [Slow down GPU

Posted: 12. Feb 2016, 02:06
by pkedpker
Haha pretty neat story that's how right way to debug the problem, what I could add is if you had server level chokes by cooper bussmann you wouldn't even run across this problem :lol: , you don't have to read my personal concerns that's just my life rant it all started when I decided to live life properly and I had a gun to my face.. after that bullying I realize the devil is trying to keep me closed off from living the right way and I know you cannot win against the devil but you can still...... you know what i mean 8) "Enemy is always listening"

Btw I wouldn't spend 4k on a gaming or developer machine maybe a decent graphic card can fetch quite alot I haven't found any good graphic cards under 200$, But as far as CPU's are considered you can buy a Engineering sample CPU for less the half the price tag of a retail CPU, the ES CPUs usually start going up in price after a certain point where they become a rarity ya on Intel's site it's considered illegal but you know what and you get the benefits of having a completely uncapped environment.. I heard stories of customers returning Enginnering sample CPUs back to Intel just to be completely ignored without even getting back a retail CPU in exchange, But anywho usually the consumers get a crappier CPU just to keep the brand happy, server cpu is the way to go, much higher limits on memory capacity. Got mines for 220$ bucks 8 core Xeon processor E5 v3 3.2 Ghz model some number no idea, But in which case in the future when RAM gets cheaper I could upgrade to 768 Gb opposed to 64 gb or 128 gb limits the crappy consumers cpus/motherboards get, yeah it's not that good CPU since betters exist but i'm not complaining I run CPUID HWMonitor tool and it shows maximum clock frequency at any of the 8 cores / +4 virtual cores total 11 cpu cores which does hit 3298 MHz and sometimes overclocks to 3498 MHz but current value is always 1199 MHz on all cores lol so I guess it barely uses it and this is with 2 games running alright the VirtualBox seems to favor 1 CPU which tends to hit 3498 Mhz (guess same problem with GPU and CPU with VirtualBox lol), and now better models exist too E6 and E7 family already came out, what's the point in upgrading if better technology will exist in the future plus if I paid 1000$ I would have 18 core processor, I figure in the future these will drop to 200$ and my computer can live a better life again in the future, then again in the future they might make a 500$ CPU with 1024 cores with some new breakthrough which is currently being covered up :lol: , my whole custom built cost about 500$ with a crappy AMD graphic card and some dumpster diving 1/2 TB hard drives and you know what I'm pretty satisfied with it.

As for my issue I eliminated all the external problems mentally, I don't doubt myself I know the problem I feel it and I'm never wrong, when I started double checking myself was a very very bad habit that I'm still trying to forget about it, heh, I know my hardware is struggling, I know the cause too I don't know how to discuss things offline lol glad you understand me I know that my question can steam many issues that create anger and uneasiness especially since this is my business and I know you wouldn't want to help others make more money, I'm willing to pay a tip for this as well too.

As for now I'm pondering a attempt to resolve this the hardest way possible, I will program my own d3d9 wrapper that will wrap the previous wrapper and i'll see what I could do to create a hotkey to toggle graphics off and on. Another guy suggested I take the easy route and just suspend the thread that has the longest execution time that's probably the game renderer and everything should be alright.

I ended up downloading VirtualBox source code here for d3d9.dll file and seeing what I could do to recompile it with some of my fixes.


Found a workaround thats decent.. it disables the 3d renderer mode which somehow bounces back to software renderer with 3d still supported.. and yeah GPU isn't used anymore.

Here is how I fixed it.. make a registry file test.reg

Windows Registry Editor Version 5.00

Code: Select all

[HKEY_CURRENT_USER\Software\Wine\Direct3D]
;"UseGLSL"="disabled"
;RenderTargetLockMode. "readdraw" proves to have great performance
;while "readtex" seems to be more stable while producing visual artifacts. 
;The doublebuffer patch also causes visual artifacts (although combined with the ones from setting "readtex") as observed in the video.
;In the end, I enabled "readtex" and the doublebuffer patch to run it in a stable manner. 
;Nvidia GL threading seems to have a positive effect.
;"OffscreenRenderingMode"="backbuffer"
;"OffscreenRenderingMode"="fbo"
;"RenderTargetLockMode"="readdraw"
;"RenderTargetLockMode"="readtex"

;"StrictDrawOrdering"="disabled"
;"AlwaysOffscreen"="disabled"
;"MaxShaderModelVS"=dword:<10> ;any number here
;"MaxShaderModelGS"=dword:<10> ;any number here
;"MaxShaderModelPS"=dword:<10> ;any number here
;"DirectDrawRender"="gdi"      ;gdi disables 3d mode


;FOUND THIS FOR LEAGUE OF LEGENDS THEY USE THIS BELOW
"DirectDrawRender"="gdi"
"Multisampling"="disabled"
"OffscreenRenderingMode"="fbo"
;"RenderTargetLockMode"="disabled"
"UseGLSL"="disabled"
"VideoMemorySize"="1024"