Skip to main content
gamedev.net
🔒 Locked

Slow Compilation

Started by Dark Star Nov 21, 2000 at 7:29 AM 0 replies 150+ views
Original Post
Dark Star
Dark Star
Hi everyone, I just wanted know something before I upgrade my computer. First of all I want to move out of the dark ages of using MS-DOS for making games and I want to move to Windows and Direct X because I have been doing a lot of reading on DirectX and find that it is not so hard after all (what originally put me off was all the long data structures, Microsoft’s way of variable naming e.g prefixing all variables with its type, etc, etc) But I have it admit there is no running away. I am currently practising my new found skills in Direct X using Microsoft Visual C++ Introductory edition because it came with Andre LeMothe’s Tricks of the Windows Game Programming Gurus book (I do intend on buying the proper one when I decide to make a full game to distribute). The problem is that the compiler compiles too slowly on my P166 16Mb computer and I wanted to know if it would benefit me to upgrade memory only instead of processor. Right now I am thinking about only upgrading memory because it is easy to do and I can by memory off the high street here, which is pretty damm cheap. I want to upgrade to 64Mb. Would the compiling speed up. Compiling a Visual C++ program made up of only 3 files: WinMain.cpp - Creates the window and looks after messages Game.cpp - Main game stuff DirectDraw.cpp – My source code to act as an easy interface between DirectX’s ugly functions and constants and to keep them away from my code Compiling just those 3 files which are not even that massive and don’t #include that much files takes (on a good day) about half a minute to sometimes a minute which is simply too slow for me to wait. If I make a small mistake in my code and have to change just one number in one line of the code, I have to wait almost a minute to a minute for an exexutable to made and run and if I have to move to the Windows platform I will need to make sure that it can compile fast. When I used DJGPP C++ in DOS I made a game that has 13 large C++ files and when I clicked on the option to re-compile and build all 13 files it did it in about 12 seconds which was not bad waiting for considering it was 13 large files of code that #included tonnes of Header files and stuff. So now that u all know how slow it takes to compile in Windows (only 3 files) on my computer, could anyone tell me if it is worth upgrading just memory. If I upgraded to 64MB from 16 would I notice a speed difference in compilation still with the P166 processor? Help !! I am really stuck, and I wanna make cool Windows games too. I only want opinions please. But any help is good help Dark Star UK
---------------------------------------------You Only Live Once - Don't be afriad to take chances.
MadKeithV
MadKeithV
If you''re currently only running 16 megs, 64 will definately make a difference. Though a minute of compiling time isn''t generally all that long, it''s quite a bit for a small program like what you describe. ( The program is actually bigger than you think though, with the inclusion of all necessary windows and directX code. )

If you think a minute is bad - think about this - a full recompile of the project I am currently working on takes about 15 minutes on a PII 233 with 128MB of ram.


People might not remember what you said, or what you did, but they will always remember how you made them feel.
Mad Keith the V.
It's only funny 'till someone gets hurt.And then it's just hilarious.Unless it's you.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.