Advertisement

VC++? Really?

Started by July 24, 2000 03:57 PM
38 comments, last by Gladiator 24 years, 4 months ago
READ THIS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

If you scrolled down to read this post, you should know, that VC++ does not optimize greatly until you tell it to optimize. There are certain optimization flags that VC++ gives you that you must specify, this can be done in the IDE if you do it under the project settings. The flag is something like /Ox where x is a various option (ie/ you can optimize and it specifically optimizes for a certain CPU), another reason it is slow is because without this special optimization, it is Compiling it for Debugging, you must also turn that off in the Project options. Trust me, VC++ will make your code optimized if you compile it right.

- Tom
Rock on,- Tom
MadKeithV, thanks for the support!

quote:
It wasn''t so much the original post that bothered me , as it was the other people joining in and saying, "Yeah, Microsoft sucks, yeah! "


quote:
(but remember, Microsoft sucks)


Stoffel, I''m starting to have some disbelief in you!

-------------------------------
That's just my 200 bucks' worth!

..-=gLaDiAtOr=-..
Advertisement
Haha Gladiator. You're gonna try and pick something apart then cry like a bitch when someone starts criticizing you. Keep it up, I need a good laugh every now and then.

Either think before you open your mouth are be prepared to endure what follows.

Oh yeah, 'Microsoft sucks'. Am I cool now or what?

Don't get me wrong, feel free to comment and question whatever you want. Next time don't act so surprised if you get a similar response.

sarcasm
Long live Michael Abrash and the X-Box
/sarcasm



-BacksideSnap-

Edited by - -BacksideSnap- on July 26, 2000 2:46:36 PM
I''m sorry, I must have been unclear:
[ sarchasm ]
(but remember, microsoft sucks)
[ /sarchasm ]
quote:
You''re gonna try and pick something apart then cry like a bitch when someone starts criticizing you. Keep it up, I need a good laugh every now and then.


First of all i knew he was kidding, and so was I... forgot to put the smiley face tho... anyways.. let''s keep the discussion goin...

nobody critisized me, they just CORRECTED me, and there''s a BIG difference between the two...

and yes... i had a good laugh once i read your thoughtless post...

quote:
Either think before you open your mouth are be prepared to endure what follows.

i think after im done with what i have to say... before that i dont care what i say, as long as it comes from the heart... and i mean what i say... it''s not only me.. whoever opens his/her mouth they should expect some kind of flame especially when they know that they''re (possibly) wrong... i didnt post the question to become a flamewar, but i didnt know that the compiler had switched to Debug mode, after i had changed the option to release mode... havent used VC all that much so i dont know all the detailed options, etc, etc.... blah blah...


quote:
Oh yeah, ''Microsoft sucks''. Am I cool now or what?

no.. you''re still that shitty ass bitch that you were before you used sarcastic comments... and to tell you the truth i dont give a shit about your likes and dislikes... it''s your opinion and im sure you have something to back it up with.. (you dont? not a surprise at all...)


quote:
Don''t get me wrong, feel free to comment and question whatever you want. Next time don''t act so surprised if you get a similar response.

pshhh... you think you''re all that, dont you? of course im free to comment.. i POSTED this question so i can comment... maybe your comments are unwanted.... and i said maybe, but since you''re fun to play around with, keep ''em comin...

quote:
sarcasm
Long live Michael Abrash and the X-Box
/sarcasm

now he thinks he''s a comedian from hollywood.. but you''ve got a LONG LONG way to go... if it wasnt for Michael Abrash, John Carmack, and the like, you would''ve been entering those 0''s and 1''s for the rest of your life.. but your mind is too confused to realize that...


ive said enough i guess... ive had my part laughing WITH you... now it''s time for me to go... and get some rest before you throw in some other dumb comment...

-------------------------------
That's just my 200 bucks' worth!

..-=gLaDiAtOr=-..
Ok guys, we should just skip that MS flamewar. MS is just a big company with all it's advantages and disadvantages, and it wants to sell it Products as every other Big Company does. If you want to discuss their methods, head over to any Forums or Newsgroups discussing the MS Trial.
But back to their compiler. Keep in mind that lots of people shall buy their OS, and of course lots of Apps shall be developed for it. So if their compiler for their OS was too crappy, why should anyone either develop for the OS or use the compiler? So that's why they did such a good work here and try to optimize as much as they can. And of course there is the concurrence of other compilers, like Borland's. Another reason for making the own product able to stand the market. Just MHO.
And btw, it was the same thing w/ DirectX; if they didn't write some accessable *and* fast interface for game programming purposes, why should *anyone* have switched over to Windows?
(Don't flame me for the last part, it's quoted from "Inside DirectX"!)

quote: Original post by Gladiator

...but that code can be optimized EVEN MORE, ...


Okay, in general you'll always be able to write more optimized code. But in this case, I think it's hardly possible. Now take a look at the code:

push	edi ; saves the value for edi heremov	edi, DWORD PTR _mine$[esp]	; store address of "mine" arraymov	ecx, 9	   ; well, it has nine fields. note that this is not byte-aligned, so I wonder how to optimize itmov	eax, 255   ; the actual value we want to put into the fields. 'nuff said.			rep stosd	   ; now repeat storing eax' value into DWORD PTR _mine$[esp+ecx] until ecx eq. zeropop	edi        ; restore edi value  


So where to make it even faster? I don't say it's impossible, I just don't see a solution. But since I wasn't too deeply into ASM programming since ~3 years, this could be wrong. If it was at least byte-aligned though (dividable by 2,4,8,...), I'd say, okay, not such a problem, but this way, I don't know.
Any ideas highly appreciated.

pi~

----------------------------------
One Word. Cube. Watch it. If you didn't already.

Edited by - The_[PI]_ehT on July 26, 2000 6:18:54 PM
Jan PieczkowskiBrainwave Studios
Advertisement
I find it interesting that every major game developer uses VC++. I had heard this was true. But is it because they compile down to assembly better or do they have some cheats in windows to make it faster. I think the latter for sure and maybe the former too. It would be so easy to do, just like a developer adding a cheat into a game except the cheat code is kept a company secret.
author of the Helping Phriendly Book
quote: Original post by Gladiator
havent used VC all that much so i dont know all the detailed options, etc, etc.... blah blah...


Then you shouldn''t whine about it.

quote:
no.. you''re still that shitty ass bitch that you were before you used sarcastic comments... and to tell you the truth i dont give a shit about your likes and dislikes... it''s your opinion and im sure you have something to back it up with.. (you dont? not a surprise at all...)


I''m a shitty ass bitch... wow, such wit. And when were we talking about my likes and dislikes? I wouldn''t even bother wasting space here with my opinion, so I don''t know where that comes into play.

quote:
pshhh... you think you''re all that, dont you? of course im free to comment.. i POSTED this question so i can comment... maybe your comments are unwanted.... and i said maybe, but since you''re fun to play around with, keep ''em comin...


I''m fun to play around with now? I thought I was a ''shitty ass bitch.'' I am laughing though, so I guess your post wasn''t a total waste. I think I''ll stop after this one though, I don''t really like arguing over the internet or in general.


quote:
now he thinks he''s a comedian from hollywood.. but you''ve got a LONG LONG way to go... if it wasnt for Michael Abrash, John Carmack, and the like, you would''ve been entering those 0''s and 1''s for the rest of your life.. but your mind is too confused to realize that...


Actually I live a couple of miles from hollywood, so it''s funny you should mention that. No, I don''t think I am a comedian... You, however, have me ROFLMAO. And I ain''t being sarcastic there.

I''m sure the game industry would be just fine without Carmack and Abrash... And why would I be entering 0s and 1s if they weren''t here? Now I AM confused. Did they make up the ASCII character set or something? They must be true heros. You sure seem to like riding their dicks.

quote:
ive said enough i guess... ive had my part laughing WITH you... now it''s time for me to go... and get some rest before you throw in some other dumb comment...

-------------------------------
That''s just my 200 bucks'' worth!

..-=gLaDiAtOr=-..


I''ve said all that I''m gonna say... I''ve wasted enough of my life with this post. Damn, Gladiator... I guess I am a bitch, you got me to respond to your post. I DO love people who talk mad shit behind the security of a computer. You are truly the shit, man. Can we be friends?

-BacksideSnap-
So if I understand this right then the point of this thread is this:

About the time you think you know it all, both sides Pro/Con realize your nothing more than an idiot?

YAP-YFIO,
deadlinegrunt
No one ever said he was an idiot. I think the point would be to be very carful before you criticize. Then again, maybe I should stick to my own advice. Accept my apology Gladiatior... I don''t want this shit getting out of hand and would much rather make a friend than an enemy. Of course, the smart thing to do would be to piss you off, then let you see my code and nitpick it to death... Optimization for free

-BacksideSnap-

This topic is closed to new replies.

Advertisement