Mail Archives: djgpp/1998/02/02/08:47:11
From: | Mike Roosa <mroosa AT gate DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro Help: Double Buffer
|
Date: | Mon, 02 Feb 1998 08:28:50 -0500
|
Organization: | CyberGate, Inc.
|
Lines: | 14
|
Message-ID: | <34D5CA12.F4B6F2B4@gate.net>
|
NNTP-Posting-Host: | tpafl3-14.gate.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm new to DJGPP and Allegro, and I have a question on Double
Buffering. I wrote a program to read in a sprite, draw to a buffer,
blit the buffer to the screen. This is all enclosed in a loop that
moves the sprite based on which arrow key is pressed. It works fine,
but I am having a problem. If I increment the X or Y coordinate by 1
pixel everything moves smooth but takes a very long time. If I
increment the X or Y coordinate by 8-10 pixels, it moves at a much
better speed but becomes kind of blurry. I'm using the AUTODETECT (640
X 480). Should I use Mode-X with page flipping or triple buffering?
Will this run on most of today's machines as long as it's run in a DOS
Window?
Please help.
- Raw text -