optimization

  1. U

    SOLVED instance_create_layer() seems incredibly slow in bulk

    So, I recently rewrote my game to use my own system instead of the built-in Room system so I could A) more easily transition between them without weird workarounds for the fact Rooms don't load until after you finish executing all your code B) use an external map editor to create them C) add...
  2. Bart

    SOLVED Optimizing terrain z value calculations

    Hi all. The last couple of days I've been working on an optimized way to calculate several z values on a terrain. For this I'm using ds_grids since they give you two free loops that are implicit and incredibly fast. Each instance that needs a z value at a specific (x, y) coordinate gets an...
  3. A

    GMS 2 Need advice on drawing a level (optimization)

    Hello everyone! I'm new not to just GMS, but game-dev in whole, though have pretty much experience in other programming-related stuff. That's why I need some more experienced advice for my problem. I'm going to have such type of procedurally generated levels in my game like on this...
  4. N

    GMS 2 Need Help Optimizing A Puzzle Generator

    Greetings, members of the GM community. I need some help optimizing a puzzle generator. This thread will be divided into two parts: the game's design and my issue and proposed solution to the generation system. I am working on a puzzle game prototype which involves swapping blocks with...
  5. Elgarion

    GMS 2 Tiles for bodies, tracks and other footsteps

    Hello GM awsome community ! It's a tricky question (for me, at least). I'd like to optimize my program by replacing my different "non-living" objects by tiles. Today, as soon as a npc dies, I replace his object with a simplier one, with a unique sprite. When an explosion occurs, I create a...
  6. Bee

    GMS 2 Optimizing - ds_list question

    Hi all, I have a matching game (kinda like match 3) and it works well. However, over time the game slows down. I've done some debugging and refactored a tonne of code, but it still happens. Later on, but it happens. The matching creates and destroys a lot of lists, for every entry on the board...
  7. L

    iOS A simple Presentation style app crashing on iPad Air

    Hello, I have been trying to make a simple Presentation style app for iOS, targeted at iPad Air. It contains several 2048 x 1536 sized PNGs, for the lack of time. I have made one room, containing a couple of objects, one as the relevant image as sprite, and a couple more as buttons for...
  8. Edwin

    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.
  9. kraifpatrik

    GMS 2 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...
  10. FlashyAlpaca

    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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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(...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top