Graphics/EndGraphics
Miscellaneous Forums/General Discussion/Graphics/EndGraphics
I have a little number-crunching program. It works fine.
Looking back, I noticed that I had used the Graphics command in the beginning because the overall program had changed in development, but since it no longer needed the Graphics command, I took it out. It now functions considerably faster, for obvious reasons.
Just out of curiosity, I tried re-adding the Graphics command, and then following it immediately with an EndGraphics command. The program isn't in a Graphics state, but now it goes back to it's slow, graphics speed.
What gives?
Maybe because Graphics switches on PolledInput and perhaps End Graphics doesn't turn it off. This is supposed to be in the BMax forum...
Ahh, I thought Buggy was a blitz3d user.
Either way, it should be in the correct forum
I just tried it in blitzplus and there is no appreciable speed difference between all 3 modes : before graphics is called, after graphics is called and after endgraphics is called.
Yup, I use Blitz3D. It's not a big speed difference unless you're crunchin' a lot of numbers like I am, in which case it's drastic.
"Doctor, when I hold my arm up like this it hurts." - some guy
"Then don't hold your arm up like that." - doctor.
Hey, I'm just sayin' that if someone had something needing graphics, and then something else, it would be a slowdown.
Thanks Damp. hahah
What I think Buggy is saying, is that it has been policy in some languages to turn Graphics off when you are number crunching, and then turn them back on when you have finished. (Which wasnt that bad an Idea).
Unfortunatly Buggy has discovered that the speed decrease of turning Graphics on hasnt disapeared when he then turns them off.
I agree that the actual example he is useing doesnt need them on. But that isnt the point. The point is "Why is it not droping back into NoGraphics speed"
I noticed that when I used BlitzUI and wrote a proram in B3D and used GRAPHICS 3D the program was VERY SLOW. But when I did not use it I could run the B3D application on a Windows 98 machine that had DX7 on it with NO PROBLEMS!!! Including all the BlitzUI windows!!!