Skip to main content
gamedev.net
🔒 Locked

#include

Started by Xyan Dec 15, 2001 at 12:40 AM 2 replies 350+ views
Original Post
Xyan
Xyan
I've read somewhere that including unnecessary header and library files in gaming code would slow down your game speed. I often inculde a bunch of OpenGL and DirectX to make shure my code functions are supported and I don't get anny unnecessary bugs. And later on I remove the ones I didn't use. -Is this method ok, because I find it hard to determine wich ones I used and wich not? -And does it slow down your gaming code(and eventually your game itself)?And what if you use just a few lines of a library? Edited by - Xyan on December 15, 2001 1:41:08 AM Edited by - Xyan on December 15, 2001 1:42:03 AM Edited by - Xyan on December 15, 2001 1:42:29 AM Edited by - Xyan on December 15, 2001 3:07:29 PM
Shannon Barber
Shannon Barber
Generally, it only slows down the compliation, not the output code.

Magmai Kai Holmlor

"Oh, like you''ve never written buggy code" - Lee

"What I see is a system that _could do anything - but currently does nothing !" - Anonymous CEO
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Oluseyi
Oluseyi
The files that go into the compilation process do not necessarily determine the size of the resulting executable. It is the actual compiled code - code in static libraries and source files (or inline functions defined in headers) - that yields the resulting executable.

[ GDNet Start Here | GDNet FAQ | MS RTFM | STL | Google ]
Thanks to Kylotan for the idea!
Xyan
Xyan
Thanks guys.

Topic Locked

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

Sign in to reply to this topic.