gamedevlists-windows Mailing List for gamedev
Brought to you by:
vexxed72
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(48) |
Oct
(58) |
Nov
(49) |
Dec
(38) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(124) |
Feb
(83) |
Mar
(17) |
Apr
(37) |
May
(12) |
Jun
(20) |
Jul
(47) |
Aug
(74) |
Sep
(62) |
Oct
(72) |
Nov
(54) |
Dec
(13) |
2003 |
Jan
(36) |
Feb
(8) |
Mar
(38) |
Apr
(3) |
May
(6) |
Jun
(133) |
Jul
(20) |
Aug
(18) |
Sep
(12) |
Oct
(4) |
Nov
(28) |
Dec
(36) |
2004 |
Jan
(22) |
Feb
(51) |
Mar
(28) |
Apr
(9) |
May
(20) |
Jun
(9) |
Jul
(37) |
Aug
(20) |
Sep
(23) |
Oct
(15) |
Nov
(23) |
Dec
(27) |
2005 |
Jan
(22) |
Feb
(20) |
Mar
(5) |
Apr
(14) |
May
(10) |
Jun
|
Jul
(6) |
Aug
(6) |
Sep
|
Oct
(12) |
Nov
(1) |
Dec
|
2006 |
Jan
(18) |
Feb
(4) |
Mar
(3) |
Apr
(6) |
May
(4) |
Jun
(3) |
Jul
(16) |
Aug
(40) |
Sep
(6) |
Oct
(1) |
Nov
|
Dec
(2) |
2007 |
Jan
(5) |
Feb
(2) |
Mar
(4) |
Apr
(1) |
May
(13) |
Jun
|
Jul
(26) |
Aug
(3) |
Sep
(10) |
Oct
|
Nov
(4) |
Dec
(5) |
2008 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sam <za...@tf...> - 2015-02-28 23:40:14
|
So my post seems to have not processed properly. Damn it. |
From: Sam <za...@tf...> - 2015-02-28 23:30:13
|
So even though this group seems to be quite unused, I'm going to talk about an amazing game called Liberal Crime Squad. It was created by Bay 12 Games, the same guys who made Dwarf Fortress. Liberal Crime Squad is all about making a bunch of crime squads to promote your liberal agenda and make the United States of America an elite liberal country. The game is full of bad pick-up lines, sweet nostalgic character-based graphics, and lots of micromanagement. If you're into that kind of thing, play this bloody game! |
From: Sam <za...@tf...> - 2015-02-28 23:25:11
|
=ybegin part=1 line=128 size=790623 name=lcs_win32_4.07.0.zip =ypart begin=0 end=524288 zu-.>*****************;***]\^XZaXZYzu-.>*****************?***]\^XZaXZYYzu-.>***2*l|Y.**H*** ]\^XZaXZYYXkZ>0;!3`b0mkţCi\L.5K&**q˷C' хu\W9<Rmyp****** |
From: <mjo...@gm...> - 2011-05-23 06:43:22
|
Game hey i wanted my family to have more http://hindimoviedownloads.com/redirect.php?to=aHR0cDovL3d3dy5jbmJjNy5jb20vP3BpZD02MjE0ODI= |
From: <v.l...@co...> - 2008-06-05 17:08:01
|
VS should be registering the control for you. If you look at Build Events/Post-Build Event, it has: regsvr32 /s /c "$(TargetPath)" Also, I found this as a really good tutorial, where in step 7 you can embed it into a webpage: http://msdn.microsoft.com/en-us/library/599w5e7x(VS.80).aspx Though, instead of having it as a VB script: <SCRIPT LANGUAGE="VBScript"> <!-- Sub PolyCtl_ClickIn(x, y) PolyCtl.Sides = PolyCtl.Sides + 1 End Sub Sub PolyCtl_ClickOut(x, y) PolyCtl.Sides = PolyCtl.Sides - 1 End Sub --> </SCRIPT> you can do this: <SCRIPT type="text/javascript" for="PolyCtl" event="ClickIn(x, y)"> PolyCtl.Sides = PolyCtl.Sides + 1; </SCRIPT> <SCRIPT type="text/javascript" for="PolyCtl" event="ClickOut(x, y)"> PolyCtl.Sides = PolyCtl.Sides - 1; </SCRIPT> -------------- Original message ---------------------- From: Stephen Clibbery <ste...@la...> > Diogo de Andrade wrote: > > Hi Steve, > > > > I've already looked onto ATL, but I honestly couldn't find a place to > > start... > > I've built an ATL project (using the template), and while it compiled and > > everything, it apparently didn't become visible to the Control Test > > Container... :\ > > If you have any pointers on when to start (web resources, source code, > > books, etc), I'd appreciate it... > > > > Thanks for the help, > > Diogo > Hi Diogo, > > I don't recall having any problems with registering the control; doesnt VS > register it for you automatically after building it? AFAIK, that ought to be > enough to make it appear in the test container. It is also possible to register > it manually using the regsvr32 exe. Maybe there was a problem with it which > meant registration failed? It'd be worth looking for errors/debug-output etc > when the registration takes place to check this. > > In terms of references, I just found stuff of the web; heres a few (probably > random) links from when I was researching it: > > http://edndoc.esri.com/arcobjects/8.3/GettingStarted/ATL.htm > http://www.codeguru.com/Cpp/COM-Tech/atl/tutorials/article.php/c17 > http://www.codeguru.com/Cpp/COM-Tech/atl/atl/article.php/c73 > http://support.microsoft.com/kb/q166480/ > http://msdn.microsoft.com/en-us/library/727z646z.aspx > http://msdn.microsoft.com/en-us/library/xt153e2k.aspx > http://www.microsoft.com/msj/0299/atl3activex/atl3activex.aspx > > The trick seemed to be to get the wizard set up right to do most of the work for > you, then tweak/extend as needed at the source code level afterwards. > > HTH, > Steve > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 |
From: Stephen C. <ste...@la...> - 2008-06-05 13:37:20
|
Diogo de Andrade wrote: > Hi Steve, > > I've already looked onto ATL, but I honestly couldn't find a place to > start... > I've built an ATL project (using the template), and while it compiled and > everything, it apparently didn't become visible to the Control Test > Container... :\ > If you have any pointers on when to start (web resources, source code, > books, etc), I'd appreciate it... > > Thanks for the help, > Diogo Hi Diogo, I don't recall having any problems with registering the control; doesnt VS register it for you automatically after building it? AFAIK, that ought to be enough to make it appear in the test container. It is also possible to register it manually using the regsvr32 exe. Maybe there was a problem with it which meant registration failed? It'd be worth looking for errors/debug-output etc when the registration takes place to check this. In terms of references, I just found stuff of the web; heres a few (probably random) links from when I was researching it: http://edndoc.esri.com/arcobjects/8.3/GettingStarted/ATL.htm http://www.codeguru.com/Cpp/COM-Tech/atl/tutorials/article.php/c17 http://www.codeguru.com/Cpp/COM-Tech/atl/atl/article.php/c73 http://support.microsoft.com/kb/q166480/ http://msdn.microsoft.com/en-us/library/727z646z.aspx http://msdn.microsoft.com/en-us/library/xt153e2k.aspx http://www.microsoft.com/msj/0299/atl3activex/atl3activex.aspx The trick seemed to be to get the wizard set up right to do most of the work for you, then tweak/extend as needed at the source code level afterwards. HTH, Steve |
From: Diogo de A. <dio...@ne...> - 2008-06-05 12:50:45
|
Hi Steve, I've already looked onto ATL, but I honestly couldn't find a place to start... I've built an ATL project (using the template), and while it compiled and everything, it apparently didn't become visible to the Control Test Container... :\ If you have any pointers on when to start (web resources, source code, books, etc), I'd appreciate it... Thanks for the help, Diogo -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Stephen Clibbery Sent: quinta-feira, 5 de Junho de 2008 12:48 To: Game Development for MS Windows Subject: Re: [GD-Windows] Internet plugin > Anyone has any ideas on this? Hi, I have used ATL (the ActiveX Template Library, comes as part of the non-free visual studio versions) with some success; its a LOT lighter weight than MFC. My plugin dll is 180k; of course all it does is download and validate the rest of the system, so its fairly minimal, but still thats a good size. The (compressed) installer .cab is only 87k, which is even better. Cheers, Steve. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555 |
From: Stephen C. <ste...@la...> - 2008-06-05 11:48:03
|
> Anyone has any ideas on this? Hi, I have used ATL (the ActiveX Template Library, comes as part of the non-free visual studio versions) with some success; its a LOT lighter weight than MFC. My plugin dll is 180k; of course all it does is download and validate the rest of the system, so its fairly minimal, but still thats a good size. The (compressed) installer .cab is only 87k, which is even better. Cheers, Steve. |
From: Diogo de A. <dio...@ne...> - 2008-06-05 11:37:57
|
Hi all! I'm trying to build an Internet Explorer plug-in that displays what in practice is a window to my game engine. I got this working using MFCs with relative ease, but when I static link the MFCs (so that the user of the plugin doesn't have to go fetch 10000 updates and installation packs), the plugin size climbs to 6 Mbs, which I think it's too big (we all know what a space hog MFCs are). So I decided to try to build an ActiveX control from scratch and implement what I needed from scratch (knowing ofc that it envolves a lot of work). I built and registered an ActiveX control, that (for test purposes, since documentation on this kind of approach seems to be limited to MFCs) implemented IUnknown and IDispatch. First problem I came to was that the registering of the control didn't make it appear on the "Insert Control" list on the Active X Control Test Container, where I was supposed to make my tests. I solved that one by copying (again, for test purposes) the registry keys generated by the MFC version of my plugin, changing what was needed to reference my new control. Then, the real problem started: when I use the Active X Control Test Container and insert my control, the OCX I built gets called, my COM object is created, it's interfaces are queried both for IUnknown and IDispatch, and then (weirdly enough), it gets released (reference count goes to zero). After that, the Active X Control Test Container crashes somewhere trying to dispatch some message to some window that's set to NULL. Honestly, I can think of a bazillion things that go wrong, but I really don't know where to start. documentation on this kind of "manual" ActiveX controls is almost non-existent (at least, I can't seem to find it anywhere). My first guess was that my dispatch interface was badly built, but the IDispatch members aren't even called before the object is released, so it shouldn't be that. The fact that the Control Test Container is trying to access a NULL window makes me guess that he's probably trying to access the window that my object should have binded itself with or something, but again, I can't find no information. Anyone has any ideas on this? Even a small sample of a working internet explorer plugin would help a lot! Thanks in advance Diogo de Andrade |
From: Chris C. <ch...@bl...> - 2008-03-18 09:42:00
|
I've not used mini-dumps before, but if it's not already included in that, then it is useful to dump out and send a list of all processes running on the machine as well to aid in diagnosis. Chris Chapman (Director) Black Company Studios On Mon, Mar 17, 2008 at 6:57 PM, Jon Watte <hp...@mi...> wrote: > > My guess is it's some other software installed on that machine. An > anti-virus package, a disk utility, or even some malware. Your program > then appears to trigger whatever the bad behavior is, but it's not > caused by your software as such. > > To debug this, I would add a __try/__except handler around my entire > WinMain, and have the exception handler write out a minidump with > indirectly referenced memory, and then tell the user to send that to me. > Visual Studio Professional can open minidumps and debug them much like a > regular program, which is pretty slick. > > Sincerely, > > jw > > > Pierre Terdiman wrote: > > Hi, > > > > I got a report saying one of my programs displayed this error message on a > > WinXP machine: > > http://www.consumingexperience.com/2007/11/windows-no-disk-exception-processing.html > > > > Problem is: I have no idea why. I ran the same program on many different > > machines without ever seeing this dialog box. > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |
From: Jon W. <hp...@mi...> - 2008-03-17 18:57:26
|
My guess is it's some other software installed on that machine. An anti-virus package, a disk utility, or even some malware. Your program then appears to trigger whatever the bad behavior is, but it's not caused by your software as such. To debug this, I would add a __try/__except handler around my entire WinMain, and have the exception handler write out a minidump with indirectly referenced memory, and then tell the user to send that to me. Visual Studio Professional can open minidumps and debug them much like a regular program, which is pretty slick. Sincerely, jw Pierre Terdiman wrote: > Hi, > > I got a report saying one of my programs displayed this error message on a > WinXP machine: > http://www.consumingexperience.com/2007/11/windows-no-disk-exception-processing.html > > Problem is: I have no idea why. I ran the same program on many different > machines without ever seeing this dialog box. > |
From: Chris C. <ch...@bl...> - 2008-03-17 11:36:24
|
Not sure about the specifics of the error dialog, but it would be interesting to know what was generating it - low level from inside a system call, or generated by your code as a response to a standard error? Is the user running the same anti-virus software? In my experience looking over crash reports from end-user machines (usually sporadic crash reports from PCs used by hospital staff), there was often interference with disk access. We never nailed down an exact diagnosis, but we inferred that if the app was trying to access the file system in an odd or low level way, the AV might be interpreting that as a viral attack and blocking it, or at least changing the access characteristics enough to cause a crash. We added a switch to swap some of the more low level disk usage that we'd put in for performance reasons for standard file calls to the next version in an attempt to improve compatibility. Never stayed with the product for long enough to find out whether it fixed their problem though, sorry. Chris Chapman (Director) Black Company Studios On Mon, Mar 17, 2008 at 8:37 AM, Pierre Terdiman <pie...@gr...> wrote: > Hi, > > I got a report saying one of my programs displayed this error message on a > WinXP machine: > > http://www.consumingexperience.com/2007/11/windows-no-disk-exception-processing.html > > Problem is: I have no idea why. I ran the same program on many different > machines without ever seeing this dialog box. > > At first I thought it would be a simple bug like trying to access a file > like "c:\somefile.dat" on a machine that doesn't have a C: drive. However > I > made a simple test doing exactly this, and it ran fine. > > I can't debug on the client's machine, so I need to guess what's wrong in > my > code. > > Any idea? Under what circumstances will the above error message get > displayed? > > Thanks, > - Pierre > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |
From: Pierre T. <pie...@gr...> - 2008-03-17 08:37:42
|
Hi, I got a report saying one of my programs displayed this error message on a WinXP machine: http://www.consumingexperience.com/2007/11/windows-no-disk-exception-processing.html Problem is: I have no idea why. I ran the same program on many different machines without ever seeing this dialog box. At first I thought it would be a simple bug like trying to access a file like "c:\somefile.dat" on a machine that doesn't have a C: drive. However I made a simple test doing exactly this, and it ran fine. I can't debug on the client's machine, so I need to guess what's wrong in my code. Any idea? Under what circumstances will the above error message get displayed? Thanks, - Pierre |
From: Mat N. <mat...@bu...> - 2008-01-16 19:20:57
|
If the error message is "warning C4244: 'argument' : conversion from 'long'= to 'u_short', possible loss of data" or the equivalent, then 'x' is not a = u_short or smaller. Otherwise, this compiles without warnings in an otherwise empty VS2005 cons= ole project. MSN -----Original Message----- From: gam...@li... [mailto:gamedevlis= ts-...@li...] On Behalf Of Dan Glastonbury Sent: Thursday, December 13, 2007 2:46 PM To: Game Development for MS Windows Subject: Re: [GD-Windows] VC 2005 Warning C4244 > You can disable the warning using a #pragma: > > #pragma warning(disable : 4244)//double to float Sure, I know I can disable the warning. But I was looking for a way of not disabling the warning. I want to know about legitimate problems, but in this case of assigning the result of a function that returns a short to a short variable this warning is spurious. cheers DanG -- Dan Glastonbury, Dan dot Glastonbury at gmail dot com `Pour encourjay lays ortras' ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac= e _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 |
From: Dan G. <dan...@gm...> - 2007-12-13 22:46:21
|
> You can disable the warning using a #pragma: > > #pragma warning(disable : 4244)//double to float Sure, I know I can disable the warning. But I was looking for a way of not disabling the warning. I want to know about legitimate problems, but in this case of assigning the result of a function that returns a short to a short variable this warning is spurious. cheers DanG -- Dan Glastonbury, Dan dot Glastonbury at gmail dot com `Pour encourjay lays ortras' |
From: Jeff G. <jef...@ho...> - 2007-12-13 20:51:13
|
You can disable the warning using a #pragma: =20 #pragma warning(disable : 4244)//double to floatenjoy =20 =20 =20 > Date: Wed, 12 Dec 2007 21:56:34 +1000> From: dan...@gm...> T= o: gam...@li...> Subject: [GD-Windows] VC 200= 5 Warning C4244> > G'Day,> I'm trying to compile at warning level 4 and I'm= getting a lot of> spurious C4244. This warning is about an integer narrow = storing> possibly loosing information.> > The problem is with this kind of = code:> > u_short n =3D htons(x);> > htons returns a u_short but, as the sta= ndard says, the result of> integer expressions is promoted to int (or unsig= ned) and is causing> the warning. Is there anyway I can code it to shut up = VC 2005?> > u_short n =3D (u_short)htons(x) doesn't work, because the resul= t is> still promoted in the context of an expression!> > cheers> DanG> > --= > Dan Glastonbury, Dan dot Glastonbury at gmail dot com> `Pour encourjay l= ays ortras'> > ------------------------------------------------------------= -------------> SF.Net email is sponsored by:> Check out the new SourceForge= .net Marketplace.> It's the best place to buy or sell services for> just ab= out anything Open Source.> http://sourceforge.net/services/buy/index.php> _= ______________________________________________> Gamedevlists-windows mailin= g list> Gam...@li...> https://lists.sourcefor= ge.net/lists/listinfo/gamedevlists-windows> Archives:> http://sourceforge.n= et/mailarchive/forum.php?forum_id=3D555 _________________________________________________________________ Get the power of Windows + Web with the new Windows Live. http://www.windowslive.com?ocid=3DTXT_TAGHM_Wave2_powerofwindows_122007= |
From: Jesus de S. G. <jes...@gm...> - 2007-12-13 00:01:23
|
Hmm... I am not having warnings in code like that with Visual Studio 2005 SP1 and W4... strange, isn't it? On Dec 12, 2007 12:56 PM, Dan Glastonbury <dan...@gm...> wrote: > G'Day, > I'm trying to compile at warning level 4 and I'm getting a lot of > spurious C4244. This warning is about an integer narrow storing > possibly loosing information. > > The problem is with this kind of code: > > u_short n = htons(x); > > htons returns a u_short but, as the standard says, the result of > integer expressions is promoted to int (or unsigned) and is causing > the warning. Is there anyway I can code it to shut up VC 2005? > > u_short n = (u_short)htons(x) doesn't work, because the result is > still promoted in the context of an expression! > > cheers > DanG > > -- > Dan Glastonbury, Dan dot Glastonbury at gmail dot com > `Pour encourjay lays ortras' > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |
From: Jon W. <hp...@mi...> - 2007-12-12 19:54:23
|
In the past, I've silenced that kind of compiler warning by explicitly masking with the range. I e: u_short n = htons(x) & 0xffff; The compiler, at the time, was smart enough to realize that the range of the masked value could never go outside the range of the stored variable. I honestly forget which compiler it was, though, as it was a while ago, but I suggest you try it! If it doesn't work for MSVC, then you'll have to live with disabling 4244. Cheers, / h+ Dan Glastonbury wrote: > G'Day, > I'm trying to compile at warning level 4 and I'm getting a lot of > spurious C4244. This warning is about an integer narrow storing > possibly loosing information. > > The problem is with this kind of code: > > u_short n = htons(x); > > htons returns a u_short but, as the standard says, the result of > integer expressions is promoted to int (or unsigned) and is causing > the warning. Is there anyway I can code it to shut up VC 2005? > > u_short n = (u_short)htons(x) doesn't work, because the result is > still promoted in the context of an expression! > > cheers > DanG > > -- -- Go is to Western chess what philosophy is to double entry accounting. |
From: Dan G. <dan...@gm...> - 2007-12-12 12:21:46
|
G'Day, I'm trying to compile at warning level 4 and I'm getting a lot of spurious C4244. This warning is about an integer narrow storing possibly loosing information. The problem is with this kind of code: u_short n = htons(x); htons returns a u_short but, as the standard says, the result of integer expressions is promoted to int (or unsigned) and is causing the warning. Is there anyway I can code it to shut up VC 2005? u_short n = (u_short)htons(x) doesn't work, because the result is still promoted in the context of an expression! cheers DanG -- Dan Glastonbury, Dan dot Glastonbury at gmail dot com `Pour encourjay lays ortras' |
From: Alen L. <ale...@cr...> - 2007-11-23 16:28:21
|
Well, yes I tried that. Creating an inline function with _asm to compare two numbers does work, but it seems to mess up with the compiler's optimizations of the rest of the function, because I can't input and output floats or ALU flags in any other way than through memory. Regarding the architecture, I'm optimizing this with /arch:SSE which, according to MSDN, implies using CMOV as well, but the complier never uses that instruction by itself. (BTw, sorry if this seems a bit off-topic, but google doesn't help, which seems like people usually don't really care. I hoped someone in the gamedev would already have experienced this.) Thanks, Alen Andrew wrote: > Does using "__asm" help? You could hand-code the instructions, then. > confer: > <http://msdn2.microsoft.com/EN-US/library/45yd4tzz(VS.80).aspx>, > which is the VC8.0 specific page about using __asm anywhere a > statement could appear. > It could be that the scheduler doesn't know that you are guaranteeing > that the program will be run on a Pentium Pro or better, system. > (Pentium Pro is when that instruction was added.) Of course, now that > I go to look for a reference to this on the microsoft web site, this > may not be a concern. I'm showing my age. > --andy > On Nov 23, 2007 4:45 AM, Alen Ladavac <ale...@cr...> wrote: >> Hi all, >> >> Is there any way to make MSVC8.0 to generate CMOV instructions? I have >> some performance-critical loops, with a lot of small ifs, where it >> generates branches, and I'd like it to put cmov/fcmov there instead. >> Allegedly, it is able to do so, but /O2 doesn't seem to help. I can't >> even find any intrinsic to do that. Any ideas appreciated. >> >> Thanks, >> Alen >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Gamedevlists-windows mailing list >> Gam...@li... >> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows >> Archives: >> http://sourceforge.net/mailarchive/forum.php?forum_id=555 >> -- Alen |
From: Jan W. <jan...@gm...> - 2007-11-23 15:59:55
|
Hello, On Fri, 23 Nov 2007 11:45:21 +0100, Alen Ladavac <ale...@cr...> = = wrote: > Is there any way to make MSVC8.0 to generate CMOV instructions? > Allegedly, it is able to do so, Confirmed, I've seen them in VC2005 SP1's output. Not sure whether that = = was due to hand-generated snippets being pasted in by the "optimizer" or= = because the code generator has been improved. Even after quite some experimentation, no reliable way to provoke CMOV w= as = found. One thing that did work (surprisingly enough) is a carry flag-based tric= k: int mask =3D (condition)? ~0 : 0; This actually works out to a SBB, which can be used to select one of two= = values or increment/decrement an index, etc. Whether this is useful = depends on the exact contents of your if() statements. > but /O2 doesn't seem to help Code Generation -> Enhanced Instruction Set will probably be necessary a= s = well. On Fri, 23 Nov 2007 16:13:21 +0100, Andrew Finkenstadt <pb...@gm...= > = wrote: > Does using "__asm" help? You could hand-code the instructions, then. Unfortunately this approach suffers from VC's inability to = peephole-optimize the 'boundaries' of asm code. You'll see back-to-back = = stores and loads of variables you pass to/from asm, which often eats awa= y = any gains attained. CPUs have forwarding hardware for this, but it still= = hurts. HTH+HAND Jan Wassenberg |
From: Andrew F. <pb...@gm...> - 2007-11-23 15:13:23
|
Does using "__asm" help? You could hand-code the instructions, then. confer: <http://msdn2.microsoft.com/EN-US/library/45yd4tzz(VS.80).aspx>, which is the VC8.0 specific page about using __asm anywhere a statement could appear. It could be that the scheduler doesn't know that you are guaranteeing that the program will be run on a Pentium Pro or better, system. (Pentium Pro is when that instruction was added.) Of course, now that I go to look for a reference to this on the microsoft web site, this may not be a concern. I'm showing my age. :) --andy On Nov 23, 2007 4:45 AM, Alen Ladavac <ale...@cr...> wrote: > Hi all, > > Is there any way to make MSVC8.0 to generate CMOV instructions? I have > some performance-critical loops, with a lot of small ifs, where it > generates branches, and I'd like it to put cmov/fcmov there instead. > Allegedly, it is able to do so, but /O2 doesn't seem to help. I can't > even find any intrinsic to do that. Any ideas appreciated. > > Thanks, > Alen > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |
From: Alen L. <ale...@cr...> - 2007-11-23 10:43:36
|
Hi all, Is there any way to make MSVC8.0 to generate CMOV instructions? I have some performance-critical loops, with a lot of small ifs, where it generates branches, and I'd like it to put cmov/fcmov there instead. Allegedly, it is able to do so, but /O2 doesn't seem to help. I can't even find any intrinsic to do that. Any ideas appreciated. Thanks, Alen |
From: Dr A. P. <aj...@eu...> - 2007-09-08 21:56:06
|
Thanks - it looks like you need the 10.1 update for this to work. _____ From: gam...@li... [mailto:gam...@li...] On Behalf Of Jason Sandlin Sent: 06 September 2007 18:56 To: Game Development for MS Windows Subject: Re: [GD-Windows] Directx9 under Vista The DX9.0c and DX10 core runtime is included as part of Vista and the D3D9 DLL is inside the DX9.0c runtime. This should help answer any other related questions. http://msdn2.microsoft.com/en-US/library/bb219742.aspx From: gam...@li... [mailto:gam...@li...] On Behalf Of Dr Andrew Perella Sent: Thursday, September 06, 2007 6:43 AM To: gam...@li... Subject: [GD-Windows] Directx9 under Vista If we make a directx9.0c game - how can we enable it to run on Vista without actually shipping the d3d9 dll? Cheers, Andrew This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. This email has been scanned for all known viruses by the Email Protection Agency. www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322 This email has been scanned for all known viruses by the Email Protection Agency This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. This email has been scanned for all known viruses by the Email Protection Agency. www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322 |
From: Jason S. <ja...@mi...> - 2007-09-06 17:57:35
|
The DX9.0c and DX10 core runtime is included as part of Vista and the D3D9 = DLL is inside the DX9.0c runtime. This should help answer any other related questions... http://msdn2.microsoft.com/en-US/library/bb219742.aspx From: gam...@li... [mailto:gamedevlis= ts-...@li...] On Behalf Of Dr Andrew Perella Sent: Thursday, September 06, 2007 6:43 AM To: gam...@li... Subject: [GD-Windows] Directx9 under Vista If we make a directx9.0c game - how can we enable it to run on Vista withou= t actually shipping the d3d9 dll? Cheers, Andrew This e-mail is confidential and may be privileged. It may be read, copied a= nd used only by the intended recipient. No communication sent by e-mail to = or from Eutechnyx is intended to give rise to contractual or other legal li= ability, apart from liability which cannot be excluded under English law. This email has been scanned for all known viruses by the Email Protection A= gency. www.eutechnyx.com<http://www.eutechnyx.com> Eutechnyx Limited. Registered i= n England No: 2172322 |