Wishlist for PureBasic v4.0

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post 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

 
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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
Last edited by Psychophanta on Thu Sep 22, 2005 6:05 pm, edited 1 time in total.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Truth_Seeker
Enthusiast
Enthusiast
Posts: 145
Joined: Tue Mar 01, 2005 8:41 pm
Location: Near a Computer

Post 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.
Thanks
Truth Seeker
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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:
Image
Image
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Truth_Seeker
Enthusiast
Enthusiast
Posts: 145
Joined: Tue Mar 01, 2005 8:41 pm
Location: Near a Computer

Post by Truth_Seeker »

Probably better programmers then we are...
Thanks
Truth Seeker
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Yeah! but we must demand Fred to do PureBasic to make things for us :twisted:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post 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. :lol:
I like logic, hence I dislike humans but love computers.
fweil
Enthusiast
Enthusiast
Posts: 725
Joined: Thu Apr 22, 2004 5:56 pm
Location: France
Contact:

Post 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.
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

:lol:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

maybe the window in the room ;)
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

thefool wrote:maybe the window in the room ;)
Yeah, that's what I meant!
I like logic, hence I dislike humans but love computers.
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post 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? :(
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

A great wish by me is an extra PureBasic-compiler wich compiles to DOS-executables.
It should support VESA.

THX ;-)
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post 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?
I like logic, hence I dislike humans but love computers.
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Don't you also want a compiler for Commodore 64?
No.
But a ZX-81 Sinclair-Compiler would be very great ;-)
Post Reply