Description

Looking for something that is faster than surface_getpixel? Well you came to the right stop.

Introducing buffer_getpixel scripts! This asset will provide you a short list of commands that will help you get a pixel color 10x faster than the average surface_getpixel command.

Its easy to set up and you can control on the performance it runs too.

Includes not only the default scripts with the buffer_getpixel, but it comes with buffer_getpixel_ext (to get the RGBA value) and it comes with separate scripts to pick up each color value individually.

So much reliability on this, this will become your replacement for surface_getpixel for sure. Its so fast, its likely possible to imitate shader effects with a color pick up code like this!

Get it now!

UPDATE 1.0.4 - Fixed bug that returns incorrect buffer index when after removing the buffer. - buffer_getpixel_end has been removed. Uses buffer_delete instead. - buffer_getpixel now relies only on one buffer index. - Two new arguments are applied for every buffer_getpixel command; width and height. Make sure to apply these changes to your code before running.

NOTE: The Width and Height specifies the surface size to use.

End User Licence Agreement (EULA).

Changes in 1.0.6

  • Notice that the colour formats were returning incorrectly since GMS follows an inverted pattern. The colour formats are now fixed with BGRA instead.

  • buffer_seek has been replaced with buffer_peek instead.

  • Minor fixes

Version 1.0.6. Published August 18, 2017

Created with GameMaker: Studio v1.4.1772

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Sacha S 28 May 2019

Breaks Using Viewport

When using view ports to scale the room view, it completely breaks which colors are being returned.
Also, blue returns red, and red returns blue. A simple fix in scripts.
Other than that, it's really fast.


Gravatar

Anonymous 15 January 2019

Author should specify the use case

The author should mention that this is faster for static images. Which is something you can do on your own honestly to better fit your project needs. This wont speed up performance if you are updating the surface.

If you are looking into getting better performance of reading an updated surface every frame, look into GMS extensions and Pixel Buffer Objects (http://www.songho.ca/opengl/gl_pbo.html).


Gravatar

Anonymous 22 May 2019


Gravatar

Caleb P 21 March 2018

Very fast, simple to use

This was easy to get working, and once it did, it provided a huge speed boost compared to surface_getpixel. My only gripe is that as of this review, the readme is out of date, and most scripts have arguments that are not listed.


Gravatar

Jacob G 25 September 2017


Gravatar

George M 30 August 2017

how do I use this?

There's a ReadMe folder but none of the files within it are readable. This is my first thing from the marketplace so maybe it's supposed to be obvious but help me out here.


Gravatar

Bart B 03 August 2017

Great!

Also, nice Minecraft build ;)

This review was left for a previous version of this asset.


Gravatar

Anonymous 03 July 2017

This review was left for a previous version of this asset.


Gravatar

Anonymous 18 May 2017

Improving the standard GM:S one asset at a time

This review was left for a previous version of this asset.


Gravatar

Ryan S 17 May 2017

Why is this not a built-in function???

Seriously, for my use case it was a 56x improvement. That's ridiculous!

This review was left for a previous version of this asset.


Gravatar

Iain B 09 May 2017

Much faster than surface_get_pixel

Used it to compare 2 images. Using surface_get_pixel took minutes. This buffer_get_pixel took seconds. Amazing speed improvement.

This review was left for a previous version of this asset.


Gravatar

Anders W 03 May 2017

Easy to use and very powerful

This review was left for a previous version of this asset.


Gravatar

Ali A 28 April 2017

its good

This review was left for a previous version of this asset.


Gravatar

Anonymous 27 April 2017

Five stars for buffers.

-1 star because it's not expensive enough.

This review was left for a previous version of this asset.

Package contents

Loading, please wait

What is the issue?

Back to Top