Page 8 of 16
Posted: Thu Sep 22, 2005 5:48 pm
by dobro
I would want todo this
Code: Select all
a.f=2.5
b.f=5.3
c.f=25.6
For t=b To c Step a
Next t
Posted: Thu Sep 22, 2005 5:55 pm
by Psychophanta
dobro wrote:I would want todo this
Code: Select all
a.f=2.5
b.f=5.3
c.f=25.6
For t=b To c Step a
Next t
No big problem.
You already can do that. It's a syntax question:
Code: Select all
a.f=2.5
b.f=5.3
c.f=25.6
t=b:Repeat
t+a:Until t>c
Posted: Thu Sep 22, 2005 5:59 pm
by Truth_Seeker
I thought almost all professional games use around 100% cpu when the game is in focus but when it is not the cpu useage is very low. Correct? Afaik you can do that in PB too, just check if the game is active and then when it is not just delay the game.
Posted: Thu Sep 22, 2005 6:02 pm
by Psychophanta
Truth_Seeker wrote:I thought almost all professional games use around 100% cpu when the game is in focus but when it is not the cpu useage is very low. Correct? Afaik you can do that in PB too, just check if the game is active and then when it is not just delay the game.
I wonder how KEGA-fusion emulator (for example) can do so perfect and smooth sync while it waste LESS THAN 2% EVERYTIME when running an emulated game. I've tested megaturrican, bloodlines, and other games in a AMD K7 900MHz GEFORCE2 32MB and on a Athlon64 3000+ with ATI Radeon 9600, and in both scrolling and sprites movements are incredibly smooth (syncronized to pc monitor refresh, which emulator put to 60Hz as soon it starts).
My desktop is at 1024*768*32, and this is the config if you want to test it:

Posted: Thu Sep 22, 2005 6:06 pm
by Truth_Seeker
Probably better programmers then we are...
Posted: Thu Sep 22, 2005 6:11 pm
by Psychophanta
Yeah! but we must demand Fred to do PureBasic to make things for us

Posted: Thu Sep 22, 2005 6:20 pm
by Joakim Christiansen
Truth_Seeker wrote:I thought almost all professional games use around 100% cpu when the game is in focus but when it is not the cpu useage is very low. Correct? Afaik you can do that in PB too, just check if the game is active and then when it is not just delay the game.
Professional games only use the required CPU power, and using 100% CPU over a longer period might damage the CPU if you're cooling is not good enough.
I have to open the window sometimes because my computer generates to much heat at 100% CPU.

Posted: Thu Sep 22, 2005 6:45 pm
by fweil
@Joakim Christiansen,
Not sure to understand well : what window do you mean ?
When my PC is burnin 100% of the CPU, I can't open one.
Posted: Thu Sep 22, 2005 6:57 pm
by Psychophanta
Posted: Thu Sep 22, 2005 6:57 pm
by thefool
maybe the window in the room

Posted: Thu Sep 22, 2005 8:04 pm
by Joakim Christiansen
thefool wrote:maybe the window in the room

Yeah, that's what I meant!
Posted: Sat Sep 24, 2005 2:22 pm
by dobro
Psychophanta wrote:dobro wrote:I would want todo this
Code: Select all
a.f=2.5
b.f=5.3
c.f=25.6
For t=b To c Step a
Next t
No big problem.
You already can do that. It's a syntax question:
Code: Select all
a.f=2.5
b.f=5.3
c.f=25.6
t=b:Repeat
t+a:Until t>c
why not for-next - step?
you believe that Fred cannot do it?

Posted: Sun Sep 25, 2005 1:28 am
by Hroudtwolf
A great wish by me is an extra PureBasic-compiler wich compiles to DOS-executables.
It should support VESA.
THX

Posted: Sun Sep 25, 2005 3:14 am
by Joakim Christiansen
Hroudtwolf wrote:A great wish by me is an extra PureBasic-compiler wich compiles to DOS-executables.
It should support VESA.
THX

And who are using DOS these days?
Don't you also want a compiler for Commodore 64?
Posted: Sun Sep 25, 2005 3:32 am
by Hroudtwolf
Don't you also want a compiler for Commodore 64?
No.
But a ZX-81 Sinclair-Compiler would be very great
