View Full Version : Slow graphics using QBasic


Spectrum
08-20-07, 08:34 AM
I have written a progam in QBasic and it draws a room using boxes. I can move around the room using the inkey$ command but it appears a bit slow. Does anyone know how to speed this up or do I need visual basic as a compiler??

przyk
08-20-07, 10:19 AM
Visual Basic is a different language, so a VB compiler won't be able to do much with your QBasic program. But there are QBasic compilers available, which could speed things up if you're currently using an interpreter. See if what you need is here (http://www.thefreecountry.com/compilers/basic.shtml), or try Google. FreeBASIC looks like it might be what you need. Basic4GL boasts OpenGL support, but you'll have to learn how to use it. In the long run, though, you'll want to move on to something more powerful than BASIC.

river-wind
08-20-07, 10:58 AM
You are going to be limited in drawing based on the fact that you're using Basic. It's not a language designed for speed.

That said, there may be ways to clean up the code or to use different drawing libraries to speed things up a bit.

Are you using QBasic for a specific reason?

Spectrum
08-21-07, 10:41 AM
Because it's free with Windows and you can /run a program straight from dos. :)

river-wind
08-22-07, 09:36 AM
http://www.petesqbsite.com/sections/tutorials/graphics.shtml


also, depending on what your goal is, a free toolkit like http://www.yoyogames.com/make might serve your needs well. There are some limitations in the free version of Game Maker, but most common functions are available.