optimisation

  1. 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...
  2. b-wb

    Debug Profiler shows DrawTheRoom being called twice-- what would I have done to make that happen?

    Hello everyone I'm working right now on trying to optimize my game and looking at performance hogs. Strangely, it looks like in the debug profiler "DrawTheRoom" and everything that falls in it is happening twice. Rather than launching into an explanation of my game's graphical code, I am...
  3. 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)...
  4. Slothagami

    GMS 2 Optimizing a trail effect

    I am making a space game and the planets (o_body) have a trail effect that fades with distance (and will eventually shrink with distance as well) I'm doing this with ds_lists at the moment, but I don't have many instances of o_body and my game has already dropped from 60 to 30 fps, is there a...
  5. Z

    (SOLVED) Bizarre lag problem: Surface problem, Camera problem, or something else?

    Hi everyone. For the past year I've been coding my own game. It's becoming quite large, at least for a beginner like me. However I've always ran across a problem: lag. At first I thought it was the number of objects and the code in them. I learned how to optimize, I learned how to make sure...
  6. Cyranh

    GMS 2 High FPS, but game is running in 'Slow-Motion'

    Hi everyone, I have a very generic question and very little info, but bare with me here. I've been working on my game for a long time, and it's became pretty big. I've done tons of optimization tweaks and rerwitten tons of code to make the game run smoother. Also, I've included graphical...
  7. D

    Particles and FPS [SOLVED]

    I found good thing to create particles in marketplace. It's working, i make 2 different particles: moving sparks and fog. But when i add them to my room, i think my FPS become unstable, because ship's speed sometimes changes (he has a smooth movement without particles). I need to make FPS meter...
  8. M

    Optimization Help

    Hello, So I'm trying to make game, and while making it I'm trying to make it as optimized as possible. I'm using Game Maker 8.0 Pro. Which would be more optimized and less stressful for a computer to compute: OPTION A:------------------------------------ if(invisible=1) { i=0; r=id...
  9. Petr Skornok

    Discussion Optimizing compile time

    Hi, we've recently hit a point where the compilation of our game takes over 1min 30s on well performing desktop machine (project includes 3500 art assets, 1500 SFX/music files and still growing). It became a real challenge to make any changes in the code and stay in the programming flow while...
  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. Drepple

    optimised loading screen

    Hello, I'm working on a project with a random room renerator. I created a second project to see how I would go about loading/generating and make sure it's optimised, by which I mean the game will perform as much calculations as it can untill the fps drops below 60, after which the game will...
  12. Master Maker

    Job Offer - Programmer Looking for optimizer

    Hey! I'm working on a pixel art game, but am having some issues with optimization. The problem has to do with the GPU, so GMS2 hasn't been able to profile it. I'm willing to pay up to $200 to anyone who can fix the fps issue. Additionally, only some pcs have the issue (not hardware-related...
  13. S

    optimizing movement

    is there any way i can optimize this movement code to save space OBJ_Player Crate//: idle = 1; walking = 0; up = 3; right = 2; down = 1; left = 0; Action = idle; Direction = down; View[1,3] = v_p_upIdle; View[1,2] = v_p_rightIdle; View[1,1] = v_p_downIdle; View[1,0] = v_p_leftIdle...
  14. Pfap

    firing code once for multiple instances

    Lets say you have like 10 rpg characters on a map and after each turn you need to run a script to update each instances position within a grid. Maybe a better way to phrase it is that I have 10 instances doing the same thing and after there done with that thing, I want to run 1 script globally...
  15. Carbiner

    GML Matrix Multiplication Optimizations? [Solved]

    Hello! I've found myself in the position of needing to multiply two very large matrices to get the result I want. Because GMS 2 does not (as of yet) support true matrix functions, I am using two ds_grids to represent my matrices. The problem is speed. I've done some questionable things to make...
  16. zendraw

    Game Mechanics [Discussion]Collision codes

    so recently ive wrote a collision code that i find most functional and light then anything ive seen. Collision code that deals with instances and is not grid based, thus giving you maximum freedom of usage. this is the code var ins=instance_place(x+x_speed, y, o_block); if...
  17. zendraw

    Game Mechanics Q:Fast collision system & FCS compatibility mode

    Can someone enlighten me to these ticks? like what functions they cover and how they change them? or any useful info about them? Im asking becouse i almost dont use the collision functions, perhaps place_meeting and instance_playce/position sometimes. but im working more and more on custom...
  18. FlashyAlpaca

    Design Map Design: Tiles or Pre-Drawn

    General question for the masses or any experienced game creator: does it make a difference using a plain .jpeg drawing as a map as opposed to making a tile set for drawing that same map? Here's some context: I am making a game that is inspired by Hyper Light Drifter's art style. As an artist...
  19. A

    GMS 2 [SOLVED] Recommended target texture swaps?

    I would like to make a 1920x1080 game, but I'm wondering if I'm going to have performance issues later on and should just scale down while I can. I'm thinking I would need about 5 4096x4096 texture pages at a time, considering texture grouping and flushing. Does anyone have any experience around...
  20. V

    Legacy GM 2.5d collisions and slowdown

    Hello everyone, The xyz collision code I am using in 2.5d seem to work well despite being still a cuboid collision (rectangular in all dimensions, disregards masks). I have adapted the reasoning from a number of true 3d collision examples, and it worked well in zeldaesque topdown with depth =...
Top