C
Ctl-F
Guest
Hey guys!
I've been working on a project that involves something along the lines of cellular automation.
Simply put, I need to perform steps on every cell in a grid that may be as large as 100x100.
Sure I could run a loop of some kind and perform operations on every cell that way (each cell is a ds_map containing cell properties); however, doing it on as many as 10000 cells every step is kind of cpu intensive.
Another method I could use would be to make every cell an object and use the built in step-event run the logic. The issue I have with this approach is that it seems wasteful in terms of memory and there's the CPU-intense aspect here as well.
I know that shaders in Game Maker are largely specialized to image processing, that said, I also know that in other projects shaders and gpu programming have been used for other things such as encryption breaking and bitcoin mining. So I know that shaders can and have been used in other places for non-graphical tasks.
I am not a shader expert. I don't use them very often and and not super comfortable with them like I am with gml. I'm wondering if anybody knows if Game Maker can use shaders for such a purpose, and if so, where can I go to get headed in the right direction?
I've been working on a project that involves something along the lines of cellular automation.
Simply put, I need to perform steps on every cell in a grid that may be as large as 100x100.
Sure I could run a loop of some kind and perform operations on every cell that way (each cell is a ds_map containing cell properties); however, doing it on as many as 10000 cells every step is kind of cpu intensive.
Another method I could use would be to make every cell an object and use the built in step-event run the logic. The issue I have with this approach is that it seems wasteful in terms of memory and there's the CPU-intense aspect here as well.
I know that shaders in Game Maker are largely specialized to image processing, that said, I also know that in other projects shaders and gpu programming have been used for other things such as encryption breaking and bitcoin mining. So I know that shaders can and have been used in other places for non-graphical tasks.
I am not a shader expert. I don't use them very often and and not super comfortable with them like I am with gml. I'm wondering if anybody knows if Game Maker can use shaders for such a purpose, and if so, where can I go to get headed in the right direction?