• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

texture page

  1. RyanC

    Legacy GM Question About PNG Crush

    Hi All, After looking in the manual to find out how to compress texture pages I found the gml_pragma("PNGCrush") function. Couple of questions I could'n't find answers to in the manual: Does this downgrade the image quality? Are the images then uncompressed at game start or as they are used...
  2. E

    Question - IDE Texture Pages and Subimages

    According to the manual, GMS2 will not split up a large sprite resource across multiple texture pages. Which makes sense, for single images. It's the word "resource" that has an unaddressed ambiguity: If all of the combined subimages of one sprite resource do not fit on a single texture page...
  3. T

    Texture Pages: Size or count?

    I'm sorry if it's an old question, but i'm having trouble finding a real clear answer. I'm aware of how texture pages and texture swaps work, i flush texture everytime and everything works good with very low texture swaps, i've got only one question: It's better to have create a lot of small...
  4. Nathan Laing

    Legacy GM More texture pages? sprite_create_from_surface

    Hello all, With the use of sprite_create_from_surface, is an entirely new texture page created on the fly to store the newly created sprite? And if so, if sprite_create_from_surface is used multiple times, are multiple new texture pages created, or, are the newly created sprites added to the...
  5. S

    GameMaker Question about texture page optimization

    Hi there, So regarding texture pages: my current set up has everything separated by room/theme, and every room change flushes texture memory during the transition so there aren't any visible stutters. Is this a good set up? Since my room backgrounds are hand drawn, I have one texture page per...
  6. T

    GameMaker When are texture pages called?

    Quick question. I've looked and can't find an answer to this specific question. When exactly is a texture page loaded? For example, if in the Draw step, I have this code if varA == true { draw_sprite( spriteA ); } Will spriteA be loaded from the texture page if varA is false? Or will it...
  7. S

    GameMaker set existing compiled sprite as surface

    does anybody know if its possible to draw on a surface and save it to a existing sprite on the texture page at runtime?
  8. Nathan Laing

    Legacy GM [SOLVED] Image size in memory, performance: draw_background_part

    G'day! When using the draw_background_part function, is the entire image loaded into memory first, or is only the part specified loaded into memory? I'm assuming in either case, a texture page swap is necessary. Finally, how much performance increase is gained by drawing, say, only 1024x1024...
  9. P

    Texture Page / Texture Atlas

    I'm wanting to know where i can create it, i tried the windows -> graphics -> preview, put the file that i got is .win format, and i never saw it, there's no way to get a PNG? Also, don't know if its because of that, but the sprite/object that i'm using is from a SWF file
  10. B

    v_vTexcoord returning coordinates of the whole Texture Page instead of the single image_index

    I'm only new to shaders in GM:S and I've come across a big problem but could be easily fixed for all I know but I haven't found anything online about it. I'm trying to put a gradient on the current sprite and image_index of the player using the v_vTexcoord to indicate how far I am through the...
  11. W

    Is there a way to use the application surface as a surface

    I don't know if I'm phrasing this right I only just started looking at stuff about surfaces today. But is there a way to make it so I can capture the application surface of the game and assign it to a variable so I can freeze it and have it fade away into the next room using an alpha decrease.
  12. Nathan Laing

    Legacy GM [SOLVED] Texture pages, sprite size and cropping

    Hello all, Regarding texture pages, and the cropping of sprite images, the GM documentation provides the following: However, I am still not 100% sure what this equates to. For the sake of example only, if I add 500 png image files each with a total width and height of say, 256x256 pixels but...
  13. F

    Legacy GM External Sprite and Texture pages

    Hello everyone. I'm trying to load sprites externaly but i've run into a problem. When I load my .PNG sprite sheet and then trying to use it, each object which uses that sprite creates it's own texture page for some reason. I will describe the process. Creation code which runs the first when...
  14. N

    Surface/Texture view in debugger

    My project has a memory issue where ever time I quit a level and return to the main menu, something from the room is getting left in memory. My guess was surfaces where the culprit, but looking at the debugger is leaving me confused. Could anybody explain to me the difference between surfaces...
  15. Nathan Laing

    Giant assets, texture page size limit - best approach?

    G'day all! Working with an 'asset' that is multiple times the size of the 2048x2048 texture page size limit. Currently, this asset has been broken down into squares each exactly equal to this limit, and is then later 'stitched' together in code. As you might imagine, with various other objects...
Top