Sign in to follow this  
Anddos

problem running compiled d3d app in virtual box

Recommended Posts

Anddos    588
when i go to run my compiled d3d app in virtual box , i get this error
missing d3dx9d_42.dll , reinstalling this application will fix this problem ?

i have installed the latest dx runtime library installer from ms site..
can anyone help ?

Share this post


Link to post
Share on other sites
Anddos    588
awsome thanks alot , ive learned a few things :)
something really strange is happening now, like the mouse sensitivty seems sensitive but when i run it on this pc , its normal etc..like it spins like mad to small mouse movement on the vbox for some reason..
also there a big fps drop , like if its running on my pc its like 1500 fps but if it running on the virtual box, its like 200 fps milliseonds per frame has also change to like 4 times as much, so i think this is messing up the camera rotation , how would i fix this?

pritty sure it has something todo with this
__int64 currTimeStamp = 0;
QueryPerformanceCounter((LARGE_INTEGER*)&currTimeStamp);
float dt = (currTimeStamp - prevTimeStamp)*secsPerCnt;



[Edited by - Anddos on October 12, 2010 10:02:25 AM]

Share this post


Link to post
Share on other sites
ET3D    810
1500 fps to 200 fps is a small change. It's less than 5ms overhead per frame. Considering that VirtualBox implements D3D on top of OpenGL using WineD3D you should expect some overhead, in addition to running in a VM which has an overhead by itself.

In your code, if secsPerCnt is some value based on QueryPerformanceFrequency then I think it should work.

You can check if the frame rate affects your code on the native PC by forcibly reducing frame rate (using Sleep for example).

Share this post


Link to post
Share on other sites
jrh2365    657
Quote:
like the mouse sensitivty seems sensitive


What are you using for mouse input? DirectInput flips out when doing mouse input over remote desktop, its possible that the same thing happens in a virtual pc.

(Though you shouldn't be using DirectInput for mouse input anyway)

Jeff

Share this post


Link to post
Share on other sites
Anddos    588
I am not sure if its the mouse flipping out or the calculating the frames is messing it up , il give adding Sleep ago but how would i not make sleep affect it if its running on this pc?,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this