delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/29/23:18:31

Message-Id: <3366B866.5466@canvaslink.com>
Date: Tue, 29 Apr 1997 23:11:34 -0400
From: Tom Grandgent <tgrand AT canvaslink DOT com>
Reply-To: tgrand AT canvaslink DOT com
Organization: Canvas Link, Inc.
Mime-Version: 1.0
To: djgpp AT delorie DOT com
Subject: ints vs. shorts

I am working on a realtime game and have been wondering about
ints vs. shorts.  At first I used ints for everything, still being
partially in the 16-bit mentality of things.  Then I noticed that
I could use shorts instead to save a lot of memory...

I have heard that there is a performance difference between shorts
and ints.  If anyone could explain when and how much this matters,
I would be very grateful.  I'm just wondering whether to use ints
for everything, shorts for everything, or a mix.

Thank you,

	Tom Grandgent
	tgrand AT canvaslink DOT com
	Canvas Link, Inc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019