[Implemented] Faster Point(x,y) command pls

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Faster Point(x,y) command pls

Post by BackupUser »

Restored from previous forum. Originally posted by Kendrel.

Iam recently working on a small game where i have to check the color of pixels, and it seems that the point command in pb is pretty slow...

we all know that the plot command is very fast already compared to an other basic language, but point command in pb is slow compared to readpixelfast in that other language...

is there any way to speed that up or a workaround?

i have coded a small example in pb and in that other language, and on my 266 k2 the pb version flickers alot... where the other runs smootly... ;(
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

there is a way to get the maximum speed of pixel read by using DrawingBuffer() and related command. You get acces to the whole video mem and you can read/write immediately to the video buffer. This is the fastest access possible, so if you want, you can do it now. I will add a faster Point() command for DX tough.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kendrel.

Thx alot Fred...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kendrel.

Oh... is it still possible to download single libs or will i have to wait for 3.6?

would be nice to get it once you have done it, but take your time...
Post Reply