Nathan Laing
Member
Greetings everyone,
I don't know how Gamemaker handles drawing behind the scenes, and would like to confirm if the following theory has any merit with a view to saving graphics memory;
If I have a perfectly symmetrical image, I could cut that image in half, importing into Gamemaker only this one half of the image. In the draw event of an instance, I would make two draw calls;
Notice the negative image scale. Acknowledging that I am now making two draw calls instead of one, does the needed amount of graphics memory equal that of the one image, or, does 'flipping' the image here with negative scale ultimately result in memory use equivalent to two images?
Nathan
I don't know how Gamemaker handles drawing behind the scenes, and would like to confirm if the following theory has any merit with a view to saving graphics memory;
If I have a perfectly symmetrical image, I could cut that image in half, importing into Gamemaker only this one half of the image. In the draw event of an instance, I would make two draw calls;
Code:
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
draw_sprite_ext(sprite_index, image_index, x, y, -image_xscale, -image_yscale, image_angle, image_blend, image_alpha);
Nathan