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... ;(
[Implemented] Faster Point(x,y) command pls
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm