MetaBalls

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Post by Danilo »

@GPI/Num3:
We are talking about OpenGL here, so SpriteEx and SetRefreshRate
arent and cannot be used.
cya,
...Danilo
...:-=< http://codedan.net/work >=-:...
-= FaceBook.com/DaniloKrahn =-
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Danilo wrote:@GPI/Num3:
We are talking about OpenGL here, so SpriteEx and SetRefreshRate
arent and cannot be used.
that's what I wanted to write...

@blueznl: regarding the FPS: I kind of messed up the message-loop.
The fps-counter only works if there're no events for the window,
so yes, the values are of course wrong when moving your mouse
and yes, the calculation itself is correct :wink:
Good programmers don't comment their code. It was hard to write, should be hard to read.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: MetaBalls

Post by traumatic »

GPI wrote:[...] and the desktop-resolution is changed![...]
I know of that behaviour on some gfxcards, the only problem is, I can't really test it, because on my pc everything works fine.
Sorry for any inconvenience.
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: MetaBalls

Post by Danilo »

traumatic wrote:
GPI wrote:[...] and the desktop-resolution is changed![...]
I know of that behaviour on some gfxcards, the only problem is,
I can't really test it, because on my pc everything works fine.
Sorry for any inconvenience.
Works fine here, but i´ve had that problem with some other
demos - so it doesnt look to me like traumatic's fault.
It just happens with some demos, no big problem at all... ;)

(i think everybody who looks demos has seen this behaviour
from time to time)
cya,
...Danilo
...:-=< http://codedan.net/work >=-:...
-= FaceBook.com/DaniloKrahn =-
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Num3 wrote:I found this nice Library on purearea that comes with some extra commands for Sprites...

Including SwapBuffers()...

This little baby turned my 60 FPS game (using flipbuffer()) into a 350!!! FPS game...

I was quite impressed! And give it 6 thumbs up !!!!

It's called SpriteX...
i hope fred is reading this :)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

runs on a laptop sony pcg-sr1k p3-350, but at 0 fps / sec :-) 0.5 or so actually, but it runs :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply