Archived

This topic is now archived and is closed to further replies.

How can I know that My program is accelerated??

This topic is 5504 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

code at NeHe's Tutorials are accelerated by AGP well. but -www.gametutorials.com-'s Tutorials are not accelerated at all. How can I turn on 3D-accelerating?? Thx for reading. (sorry for my lack of English expression skill.) P.S. I have Dual-monitor and Two graphic card(PCI & AGP) Therefore if one program is acclerated by AGP, then that programs's window can run AGP-linked monitor only. but -www.gametutorials.com-'s Tutorials are run both screen well. :< [edited by - XN the Dismemberer on November 21, 2002 3:14:39 PM]

Share this post


Link to post
Share on other sites
Running gametutorial''s tutorials in windowed mode seems to make them run a LOT slower for some reason. I find that setting your desktop bitdepth to 32(true color) makes them run correctly though.

Share this post


Link to post
Share on other sites
you can determine if you can get an accelerated rendering context like this:


after the call to ChoosePixelFormat, do the following:


  
PIXELFORMATDESCRIPTOR GLpfd;

..
...
.... (setup format)
...
..

unsigned int pixelFormatID= ChoosePixelFormat(hDC, &GLpfd);

DescribePixelFormat(hDC,pixelFormatID,sizeof(tagPIXELFORMATDESCRIPTOR),&GLpfd);


if (GLpfd.dwFlags & PFD_GENERIC_FORMAT)
{
//eek, no hardware support, better bug out

}


| - Project-X - my mega project.. big things comming soon - | - adDeath - an ad blocker I made - | - email me - |

Share this post


Link to post
Share on other sites
Thank u for all your useful infomations :>

BTW I find out why some slugish rendering was occured last night.

In PIXELFORMATDESCRIPTOR, by adding just one statement,
I can get 3d-accelerated graphical result!!


PIXELFORMATDESCRIPTOR pfd
..
pfd.cAlphaBits=0; <- here!!
..

:>

by that means, in case of FramePerSecond examples,
FPS was increased to 60 FPS from 40 FPS.

then why gametutorials.com did not include that statement??
why everybody learned from that sites run slow program????

The Truth Is Out There..:<

Share this post


Link to post
Share on other sites
because you''re one of the only ones who don''t have destination alpha in hardware, and on nearly every normal constellation, you get a hw pixelformat by the settings of gametutorials.com.. how should they know?

"take a look around" - limp bizkit
www.google.com

Share this post


Link to post
Share on other sites