optimization

  1. 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)...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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.
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top