• 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!

optimization

  1. E

    Will deactivating objects optimize the game?

    Hey, GameMaker's. If I deactivate objects somewhere, for example. outside the view, will it be counted as optimizing the game? I would not want to be a developer who has not paid enough attention to optimizing the game: as a result, the game may be demanding of resources.
  2. kraifpatrik

    GameMaker Optimizing code for YYC

    Hey everyone, yesterday I started fiddling around with C++ files generated by YYC (the path to the files can be found in the console upon start of running the project with YYC, for me it was C:\Users\kraif\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE) and I found that there are situations...
  3. F

    Game Mechanics Drawing Layer to Surface Smaller than Room Size

    Ok, so here's the rundown: I'm trying to draw only the currently visible part of a tile layer to a surface. This is because I'm implementing a system in the game where a Wall tile section will fade out when the player is over top of it, giving a simulated depth to the layer. I've managed to do...
  4. S

    Optimization

    I have a few questions about optimizing for increased performance. I know very little about this, so any tips will help, but I also have a few direct questions. Is there a benefit to using events like left mouse pressed, keyboard pressed, key pressed, etc above setting a variable in the step...
  5. G

    [SOLVED] Optimizing Room with Thousands of Objects

    I've got a room with about 3000 objects that are marked as optimizable (par_optimize). So I've divided my room into chunks by creating a "chunk" object for each chunk (obj_optimize_chunk). Each chunk size is the same size as a view. Each chunk object populates its lists of data for optimizable...
  6. Bart

    3D Best way to draw background gradient to use as sky

    Hi all. I've been playing around with the application surface recently and, while doing so, tried to code a gradient that acts as the sky for a day and night cycle. While I originally used a half sphere model for the sky, I figured that it could be more interesting to draw a gradient...
  7. Y

    Discussion Working around texture page limitation 1920x1080 with upressed pixelart(situation inside)

    Hello community I’m making a game with mostly pixel art, where I basically want to upscale pixelart assets to keep the pixel look intact even in 1920x1080 aspect ratio.* (I explain why soon) As example that means I made my player character 25x25px but upscale it (nearest neighbour) to 50x50...
  8. GMWolf

    Preprocessor directives in GMS2 - GMWolf

    GM Version: GameMaker:Studio 2.1.4 Target Platform: ALL Download: N/A Links: Youtube video Summary: After a long hiatus, I'm back with a tutorial describing how to make use of the processor to achieve preprocessor-directive-like constructs. This allows you to have different sections of code be...
  9. Kentae

    3D Optomizing Model Rendering

    Hi :) I'm trying to optomize the way I render models that are reused a bunch of times, like trees, rocks, bushes, and so on. In this example I use the trees. Usually I would do it this way. CREATE: tree_buffer = vertex_create_buffer(); vertex_begin( tree_buffer, vertex_format ); tree_gml(...
  10. L

    3D drawing and performance

    Hello everyone, Just a quick question to get a few pointers- Ive been working on a long term project and still use GM8 for this. Most of the map consists of segments using the "d3d_draw..." Functions and each have their own draw event. Knowing this is a noob way of doing 3D for a large map...
  11. S

    Spatial Hashmap Memory Leak

    Believe it or not, I actually managed to add a spatial hashmap (using global ds_lists), and it actually works perfectly! ...almost. There seems to be a pretty bad memory leak whenever my player object reads through the lists. Here's how it works: Cells in the hashmap are just very large tiles...
  12. C

    Max game size apk file

    Hi guys, Am sure am not the first one to incur this problem but what is the max apk file game maker can compile? My game is exceeding 200mb and the game just can't be rendered.. I have also tried testing my game via usb cable on my phone and it simply crashes..is there any game maker mobile...
  13. S

    Spatial(?) Collision Grid

    I'd like to drastically cut down on collision checks by using what I believe is a spatial grid (I think?) Basically you'd split your room into different, equal sized cells, and every object is stored into one or more of these cells if they overlap them. Objects would only need to check for...
  14. B

    Activating instances only on the current platform

    Hello everyone! Hit a bit of a wall with the game Im making. Right now I have it so only the section of ground the player is currently standing on is visible (this is an isometric game), all others are invisible. Im using a collision event to do this with a: Visible = other.visible Code in...
  15. Sean Catherine

    Discussion "Optimization" —A New Guy's Take-Aways... [SOLVED]

    I've been reading a heck of a lot lately on the forums, trying to get a grip on how to go forward with my project. "Optimization" seems to be the most prevalent, important subject I'm seeing... Here is a numbered list of points that I'm either confused about, or am way off in terms of...
  16. TheOnlyWRT

    Optimization

    Hello, So, i have a project where i am currently conrtolling each tile as an instance and i need maps to be as big as 100x100. What would be the best way to optimize this so that there isnt lag? If i didnt render any of the tiles that are off screen and just "ignored" them, would that help? How...
  17. T

    Loading sprites

    Good afternoon! A small question. I heard that to optimize in Game Maker 2, you need to load sprites programmatically every time you load a room, and not load them through the IDE. Sprites downloaded directly into the project loads game's memory a lot? If so, then how can i load sprites right way?
  18. T

    Animation optimisation

    Hi evetyone! We make a game and at the moment we have 45 animations and 3 characters, each animation has 60 frames and lasts one second. Downloaded in gif format. After addition of animations in Game Maker 2, IDE began to noticeably slow down and for a long time to be loaded. I have 4 GB of RAM...
  19. L

    GML Flow-Field Optimization

    I've been developing a flow field for some time now and i'm running out of optimization ideas. Currently, it's just too slow for use in an actual game. I am using buffers, accessors, and making sure my scripts are as lightweight as possible. I already know about separating the map into several...
  20. T

    Windows 2D sprite memory/processing impact

    I'm putting together some animation cycles for a character in an isometric game, which means the character needs to have animations for many angles of movement. I would like to animate for 15° increments at the very least, but I'm already up to 408 frames to cover standing, squatting, squat...
Top