Page 2 of 5
Posted: Sat Jun 19, 2004 1:26 am
by DoubleDutch
Thanks for testing it again for me.
It was my fault I think, I forgot to initialise the font size properly. Sorry...
But it works now!

consoleX examples works too slow?
Posted: Sat Jun 19, 2004 12:28 pm
by endo
hi, thank you for your nice lib.
i run all examples, but all of them are working too slow on my machine except the example5 (fullscreen). (my machine is a p4 2.4mhz, w2k)
best regards,
Posted: Sat Jun 19, 2004 1:04 pm
by DoubleDutch
I have tested it on a 1Ghz P3 and I have 2.4Ghz P4.
Do other purebasic programs run slow on your machine - in particular the graphic demos? With that spec they shouldn't?
What graphic card do you have?
By slow, can you see the actual drawing or something, there are several delays in the program to show different sections...
Does anyone else have this slowdown problem?
re: consoleX examples works too slow?
Posted: Sat Jun 19, 2004 1:19 pm
by endo
hi,
there are many other programs works correctly on my machine even graphics demos. my graphic card is not a good one (onboard s3) but other gfx demos works fine?
additionally, moving console window is so slow? if there is something to test this situation, just tell me.
regards,
endo.
DoubleDutch wrote:I have tested it on a 1Ghz P3 and I have 2.4Ghz P4.
Do other purebasic programs run slow on your machine - in particular the graphic demos? With that spec they shouldn't?
What graphic card do you have?
By slow, can you see the actual drawing or something, there are several delays in the program to show different sections...
Does anyone else have this slowdown problem?
Posted: Sat Jun 19, 2004 6:20 pm
by DoubleDutch
I think that the problem will be in your video card. Having onboard S3 is pretty much useless. Its a huge bottleneck in your system.
The program uses huge sprites - 640x480 etc... I'm guessing that your card cannot handle this in hardware & goes to some form of software driver.
If you can try allocate more of your system ram to the video card - this may make a difference.
btw, is your system a mini-itx or something? Why not use a agp or pci solution?
Posted: Sun Jun 20, 2004 8:33 pm
by Bonne_den_kule
It's use directx 7? Win98 and NT hasent preinstalled a so new version.
That meens that ConsoleX can NOT replace the original console.
Of course you could distribute a program with ConsoleX with DirectX 7, but the directx 7 runtime files are over 50 MB in all.
And it is strange that you need a 3d top tuned graphic card and 4 Gh P4 to use a simple console application.
Posted: Sun Jun 20, 2004 10:43 pm
by DoubleDutch
Bonne_den_kule: do you have a problem with ConsoleX because you have also written a console type library? I have no problem with your library - this is not a competition! At least I don't think it is
I have just tested it on a 600Mhz C3 machine with a quite old £15 pci graphics card, it runs without any problems. You don't need a state of the art gfx card or a P4.
But if you do have a 2Ghz P4 and are using on board S3 graphics then you are nuts! Why not spend £15 on an AGP or PCI graphics card and make a real speed difference to your system???
btw, I only said directx 7 because thats what the help file says is needed to open a screen in purebasic, if this is not the case & you can get by with older versions then it will work in pre-directx 7...
In any case, most if not all windows users by now have at least directx 7 installed.
I personally don't know anyone with a windows machine who doesn't have directX 7 or above installed.
The whole point of the library is to make it easier to make legacy programs look better on newer systems by giving a set of easy to use commands that are very similar to the older console ones - just add an X!...
If you want to write programs for both old (win98 is 6 years ago) and newer systems then if the system fails then just open a regular console.
If the helpfile is true, then even purebasic's open screen will fail on those systems?
Anyhow, I've uploaded a slightly newer version (to the usual link), this version has commands to set the rgb value for foregound and background printing - see example 6 for a bit of a demo.
If people want, I can make a new version that will pass thru commands to the original console system if the OpenConsoleX fails to open directx properly.
Anyone want this feature?
-Anthony
Posted: Sun Jun 20, 2004 11:50 pm
by Bonne_den_kule
Posted: Mon Jun 21, 2004 1:41 am
by DoubleDutch
np. I didn't mean to slag off 'Endo's machine - but it did seem a little crazy that he would have a 2.xGhz P4 and quite a slow gfx card. Most of the onboard gfx solutions I have seen are much slower than the AGP or even PCI counter part for the same chip (with gfx RAM on the pci/agp card).
but...
I've just tested the program out on an 800mhz EPIA (133Mhz FSB) with a onboard S3 graphics. It runs without problems.
There must be something else that makes it run slower on Endo's machine.
Endo: what bit of the program runs slow? can you see text pixels being drawn?
there are delays in the program, these are the same as the original example. Try running the original console example in your purebasic directory. It should run at a near identical speed.
On the EPIA when the window was "dragged" around the screen you can see a redraw. This is to do with the gfx card drivers or directx. Its not part of my program - its something that is kind of beyond my control if I want to continue using DirectX for the draw/redraw. Is this what you saw on your system?
Posted: Mon Jun 21, 2004 7:53 am
by Bonne_den_kule
Maybe you need to update DirectX. Some runtimefiles may be missing.
problem solved (partially)..
Posted: Mon Jun 21, 2004 10:41 am
by endo
Bonne_den_kule wrote:Maybe you need to update DirectX. Some runtimefiles may be missing.
hi again. yes! you are right, i have update my directx and all examples works fine except "example2.exe"
my dx version was 7, now dx9 installed on my machine.
DoubleDutch: you are right p4 and s3 is useless. but that machine is at my office and i dont use gfx-based applications at work..
example2 isn't work, window appears but its refresh rate too low? ~ 1 frame per second?? is there something different in example2?
(may be it would be better that you dont waste your time if there is no one who reported the same problem.. )
regards, endo.
Posted: Mon Jun 21, 2004 11:35 am
by DoubleDutch
example 2 is a bit of an extreme, its a 160x80 character screen.
it basically is drawing a huge sprite - the font is size 24!
It was just to show that you could change the size of the screen to a level beyond what was needed.
Some graphic cards cant cope with larger sprites and may do the drawing in software when it gets out of the hardware limits or maybe draw several of them to do the same job.
Chances are that the ranges in example 2 would never be used in real life. Most cases will be as in example 1.
Thanks for testing it out anyhow, any feedback at all is welcome.

Posted: Fri Jun 25, 2004 3:53 pm
by DoubleDutch
New version of library 1.06 at:
http://www.doubledutchdesigns.com/download/ConsoleX.zip
This version has no added commands, but there is a speed up in the redraw on a resized window...
-Anthony
Posted: Sat Jun 26, 2004 5:26 am
by DoubleDutch
zip updated, now has proper help file that works okay with the purebasic editor
its at the usual location...
-Anthony
WindowExtension
Posted: Thu Nov 09, 2006 1:19 pm
by unhappy
Hi.
I try use library ConsoleX, but got the follow error:
"The following PureLibrary is missing: WindowExtension"
I know what "WindowExtension" library was replaced by "Window", but what next?