optimization

  1. animated_ginger

    GMS 2 Steam Multiplayer Hassles (Lag spikes / Stuttering)

    Hello! I hope all is going well for everyone! I've been bashing my head back and forth for the longest while now with trying to create a multiplayer game. So far, my game works and has functions like: Being able to see other players move, enemies spawning in and also moving around, but.... The...
  2. D

    SOLVED [GMS 2.3+] When do I use this tools over this one ?

    Hi everyone, I am new to GMS2, I am trying to learn the soft for a month and a half, with almost no programming background. I have done some research about the different GMS2 tools (arrays, data-structure, local/global variables etc...) to know when and why they should by used. The main point...
  3. Yizzard

    Weird specific lag spike that I can't seem to find in Debugger

    So this may not be something you all can help with, but if you have any idea what could be causing this that would be very helpful. Basically, after loading into the game after I take damage the first time or if this one specific boss does this one thing where it summons an explosion object...
  4. P

    GMS 2.3+ Drawing Procedurally Generated Terrain

    Heyo, so to start off im pretty amateur in GMS so forgive me if the entire approach is kinda dumb. I've created a perlin noise function to generate a height map for my terrain, given it some colors and it's working pretty well. Now I want to draw that terrain, but not exactly as a simple 2d...
  5. Dreary

    SOLVED Sprite Parts as Particles?

    I have created a disintegration effect that breaks the sprite down into a bunch of objects containing part of the sprite. It works as intended, but is incredibly inefficient. What I want to do is to find a way to make it so that I can disintegrate multiple enemies at a time without taking the...
  6. Architheutis

    iOS Game-crash during test procedure

    Hi Folks, after succeeding with compiling my game for xcode I have a persistent problem during the test phase: I´m using an iPad Xs (14.4.8) - xcode registered it and installed the test-bundle on it. The game has 12 big levels. It works fine on Android from start til the end. But on...
  7. H

    SOLVED My Textbox Code (is a fixed problem just a copy and paste code now i guess.)

    Hey so I had a problem with my textbox that made it loop over and over again or just not be able to be used again after it closed, if you're having problems, you can either copy and paste my code or try and figure out how you can fix yours. Create Event: begintext = false draw_set_font(font0)...
  8. Slothagami

    GMS 2 Color coding strings at runtime

    I'm making my own version of code writer, just for fun, and I am want to make the text color coded for the languages I intend to use it for (html, css, javascript, etc...). So the problem is that I need to change part of a strings color based on context, (check if it's in brackets and things)...
  9. Bart

    GML Using DS Grids For Calculations

    GM Version: ALL (the code makes use of ds_grid accessors but that is not a requirement) Target Platform: ALL Download: N/A Links: N/A Summary This tutorial series shows how certain calculations can be done using ds_grids. Each tutorial focuses on a specific calculation or algorithm. Tutorial...
  10. E

    Performance Issues

    Hi everyone! Over the past few days, I've been doing a lot of investigation into my game's performance, specifically with regard to keeping a steady 60 fps. The debugger & profiler have been pretty helpful, but I have a few questions about some problems I've been having. How much are memory...
  11. E

    Question - IDE How can I see the textures loaded in the VRAM?

    good morning community, I have a question I am optimizing a great project for mobile devices, I have exported to YYC and I have had good performance on high-end and mid-range and low-end devices I have had problems, so I have optimized as much as possible ... At the moment I started with the...
  12. T

    SOLVED Optimization: objects and instances (question)

    Hello! Are there any difference for game if I have (for example) 10 objects or 10 instanses of one object? For memory/performance/etc. I have found 2 ways to make a cutscene, and first is to create a new object for every cutscene, second is to create different instances of one object (it uses...
  13. helpless_coder

    GMS 2 Most optimized way of defining planes that store coordinates?

    You're probably confused by the title, it's a bit tricky to explain. I'm drawing 3d squares at different distances, and I need a way to store all the information for each plane of the square. So essentially I want to store planes in an array. These planes are defined by four points, in addition...
  14. G

    SOLVED Using the same image for multiple animations

    I've been creating some player animations lately for what is supposedly going to become a game sooner or later. Some of the animations' sprites use the same image, for example whilst facing right, the player can turn his head to the left but he can also turn it towards the camera and blink. The...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top