optimisation

  1. 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...
  2. 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...
  3. Dioramos

    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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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 =...
  17. RyanC

    Legacy GM Movement code optimization ideas?

    Hi everyone, does anyone have any ideas how this code can be optimized, as it's eating up 30% off my game time. /// movement and collsion alarm[2] = 1 // step frequency // gravity if ! place_meeting(x,y+grav,obj_floor) { gravity = grav } else { gravity = 0 vspeed = 0 if...
  18. R

    Legacy GM Multiple objects in room editor vs scaled objects

    Hi! Im making a platform game with lots of short levels. I have one object called "obj_solid" (32*32, invisible) so the player can collide with it. In the room editor im using this object multiple times to create walls, floor, platforms, etc. (then im using tiles over this objects). But it...
  19. gdkid

    Android / Amazon Fire Need Optimization tips to Improve Game Speed

    Hi guys I made a game called Star Dots, which is similar to the Flash game Boomshine in which you create series of explosion from tiny "dots". Download it here: https://play.google.com/store/apps/details?id=com.strangepulsestudio.stardots My game has an issue with performance. So each time...
  20. T

    GMS 2 [Solved] Optimizing Surfaces?

    How can I optimize my game's use of surfaces? I have an object drawing a surface over the camera to simulate a lighting system. I have light sources drawing over that surface with a subtraction blending mode. The game runs fine when the window is small (the game's default resolution) but when...
Top