Advertisement

Software mode?

Started by January 16, 2001 05:19 AM
4 comments, last by FatboYgw 23 years, 10 months ago
Hi, new to the forum. Just wondering... is there any way to actually specify that you wish to run in software mode? If so how do you do it? Thing is, my OGL proggies run fine at home on my GF2, but when I want to show them off at college (where the machines have no hardware 3D) they run exceedingly slow. My window context code is only a slightly modified version of nehe''s tutorial code. Thanks in advance
----Gareth Williamsgareth@fatweb.orgwww.fatweb.org----
Ok I just completely contradicted myself... if there's no 3D hardware then the program would be running in software mode anyway

But IS there a way of specifying software mode (ie. I run it at home and it ignores my Geforce)?

Edited by - fatboygw on January 16, 2001 7:59:26 AM
----Gareth Williamsgareth@fatweb.orgwww.fatweb.org----
Advertisement
You need to enumerate pixel formats and use a pixel format with PFD_GENERIC_FORMAT flag.
I added the PFD_GENERIC_FORMAT flag to the pixelformat, but it didn't work... got any code for using software mode specifically?

----
Gareth Williams
fatboygw@lineone.net
----

Edited by - fatboygw on January 19, 2001 4:03:41 PM
----Gareth Williamsgareth@fatweb.orgwww.fatweb.org----
You could link to Mesa on both machines, that way you''ll be using the same software renderer at home and at college. Different implementations may have different methods for switching from hardware to software (Microsoft/SGI Reference/Hardware Vendor) but, if I remember correctly, they will try to use as much hardware as possible...

Of course, you will probably still see a difference depending on other hardware.
Well, it''s quite clear in SDK - ChoosePixelFormat ignores PFD_GENERIC_FORMAT flag.
You have to scan all pixel formats by yourself with DescribePixelFormat to find the good one (I''d say - the first format matching your requirements), and use it in SetPixelFormat.

This topic is closed to new replies.

Advertisement