Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


PresentationInterval choice... and test my demo


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
14 replies to this topic

#1 cozzie   Members   -  Reputation: 1778

Like
0Likes
Like

Posted 28 December 2012 - 04:37 AM

Hi all,

Would you like to see if my d3d engine demo is working on your system?
http://www.sierracosworth.nl/gamedev/2012-30-12-demofullscreen.zip
http://www.sierracosworth.nl/gamedev/2012-30-12-demowindowed.zip

If so, please let me know if it's working and what specs your system has, nice to see / hope to see that making it HW indepedent works :)

Although it should be working, I'm struggling with the best choice on 'PresentationInterval':

D3DPRESENT_INTERVAL_ONE/DEFAULT
+ gives the best functional result.
- in some frames I get 'Assertion error, bPresentSubmitted' in d3d debug, most likely because of 'V-sync?)' (Present call in Renderframe)
(frequency get's higher when I use managed pools instead of systemmem, don't know yet why though)

D3DPRESENT_INTERVAL_IMMEDIATE
+ d3d debug error above is gone
- mouse speed is 'lagged', although solvable with changing 'speed' float, image is anyway 'floppy'/scrambled or how you'd call it :)

For now I'd like to ignore the assertion errors and use one/default. The errors by the way only occur in fullscreen, not windowed.
Been struggling with it for days, just to get rid of the debug errors (which don't harm functionally).

Like to hear you thoughts on this.

Edited by cozzie, 30 December 2012 - 10:42 AM.


Sponsor:

#2 Zaoshi Kaba   Crossbones+   -  Reputation: 4658

Like
0Likes
Like

Posted 28 December 2012 - 05:22 AM

I've done what shouldn't be done - ran public .exe file.

 

  1. I move way too slowly
  2. Normal look broken: http://img203.imageshack.us/img203/6278/screen000k.jpg (around windows, etc)


#3 cozzie   Members   -  Reputation: 1778

Like
0Likes
Like

Posted 28 December 2012 - 06:29 AM

Thanks for wanting to try it.

The normals I'm aware of, it's just a bit 3d model (made it myself, not so good at 3d max yet :))

 

What do you mean by move to slow, is this about perception (I know it's not 'running' mode :)), or can't you almost not move through the scene at all?



#4 Zaoshi Kaba   Crossbones+   -  Reputation: 4658

Like
0Likes
Like

Posted 28 December 2012 - 06:46 AM

It's as slow as crouching. Normal walking should be faster :\



#5 cozzie   Members   -  Reputation: 1778

Like
0Likes
Like

Posted 28 December 2012 - 07:10 AM

OK clear enough :)

Just did a small change, do you want to try it again?

 

Also wonder what you think about the presentation interval choice.



#6 MisterFuzzy   Banned   -  Reputation: 161

Like
0Likes
Like

Posted 28 December 2012 - 07:04 PM

Win7 with AMD Vision A8 laptop, unable to start correctly (0xc000007b). That is all.


"Only idiots quote themselves" - MisterFuzzy

 


#7 cozzie   Members   -  Reputation: 1778

Like
0Likes
Like

Posted 29 December 2012 - 08:17 AM

Thanks, been getting the same result on a few other systems, though not on Zaoshi Kaba's machine.

Will try to find out what's causing it, bad releasing in VStudio or maybe not enough hardware checking



#8 ~Helgon   Members   -  Reputation: 357

Like
0Likes
Like

Posted 29 December 2012 - 11:12 AM

W8, i5, graka ati - running np


from time to time i find time


#9 cozzie   Members   -  Reputation: 1778

Like
0Likes
Like

Posted 29 December 2012 - 03:07 PM

Thanks Helgon, good to see that it works.

Now just to find out why several people get 'unable to start correctly (0xc0000007b), probably some hardware capabilitie I'm requesting which not everyone has available.



#10 unbird   Crossbones+   -  Reputation: 6023

Like
0Likes
Like

Posted 30 December 2012 - 06:15 AM

You are providing (two) 64-bit-DLLS with a 32-bit application.

The error is (from ntstatus.h from the WINDOWS SDK).
#define STATUS_INVALID_IMAGE_FORMAT      ((NTSTATUS)0xC000007BL)


#11 cozzie   Members   -  Reputation: 1778

Like
0Likes
Like

Posted 30 December 2012 - 10:29 AM

Thanks, that must be it.
I just did a new release and placed it here:
www.sierracosworth.nl/gamedev/2012-12-30-demowindowed.zip
www.sierracosworth.nl/gamedev/2012-12-30-demofullscreen.zip

Can you try it out?

I didn't include any d3dx DLL files now, if it asks for it on your system, can you tell me the exact name?
(then I'll include the 32bit version of it in the ZIP files). This shouldn't be the case because in my release build I know used d3dx9 instead of d3dx9d.

Edited by cozzie, 30 December 2012 - 10:43 AM.


#12 Zaoshi Kaba   Crossbones+   -  Reputation: 4658

Like
0Likes
Like

Posted 30 December 2012 - 12:50 PM

Well I tried both of them and they both work.

 

Goodjob on fixing normals!



#13 cozzie   Members   -  Reputation: 1778

Like
0Likes
Like

Posted 30 December 2012 - 02:58 PM

Thanks! Good to hear that ít's working on other machines :)

Normals were because of wrong adjacency, use NULL now and check if source mesh has normals or not (if so keep them).



#14 MisterFuzzy   Banned   -  Reputation: 161

Like
0Likes
Like

Posted 02 January 2013 - 08:55 PM

Everything is working now :).

 

I'd recommend normalizing the input from the keyboard to make the player move the same speed in every direction.


"Only idiots quote themselves" - MisterFuzzy

 


#15 cozzie   Members   -  Reputation: 1778

Like
0Likes
Like

Posted 03 January 2013 - 07:23 AM

Hi, Thanks.

I do that partially, based on calculation/ timer (FPS), allthough it's not normalized comparing W/S/A/D movement and freelook with the mouse

(using a float value multiplied by the speedfactor of the timer, the float value depends on the scale of the meshes).

I'll look into it, thanks for the hint






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS