As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [performance]

The quality, efficiency, and speed of running gameplay as a result of several factors in the design and structure of the game and its architecture.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

How to improve performance of LiBGDX Android app?

After creating a few bodies and a map with collisions, the app performance clearly goes down. However, RAM and CPU don't seem fully stuck, but the game experience is horrible nonetheless. GameScreen ...
6 votes
3 answers
4k views

Why are we not using integers in game physics?

We can use integer for game physics (or without physics, simply object representation): mass, position and rotation, where the integers represent, for example, the number of milligrams, millimeters or ...
0 votes
1 answer
85 views

How do game devs tie physics to fps?

If a GPU is rendering 3D graphics, doesn't it have to wait for the CPU to finish computing all the physics calculations before returning a frame? And if it does have to do that, then how does game ...
11 votes
4 answers
3k views

Why do prefabs speed up loading?

I have a scene with a massive terrain. It took a long time to load (approximately 60 seconds) when I pressed play. I am in the editor. I prefabbed it. Now it only took about 5 seconds to load when ...
27 votes
2 answers
19k views

How can I reduce the performance impact of rendering trees?

I'm making a low poly stylized kind of game. I have a terrain with some water, and I want lots and lots of trees; I have 10,000 trees mass placed, at the moment. Each tree consists of no more than 200 ...
0 votes
1 answer
437 views

Reduce Unity Editor loading times

Open project => Wait Start / stop game => Wait Change script => Wait Move object from project view => Wait You blink too often => WAIT even more ! And so on and so on.... And the ...
1 vote
0 answers
55 views

Very high energy impact and frame drops on iOS

I have created a mobile 3D game and now I am running it on an iOS device. It works well and runs at about about 25 fps. But after a while, about 2-3 minutes, it drops to 15 - 18 frames per second. My ...
1 vote
2 answers
1k views

Performance issue when particle system occupies most part of the screen

I'm using particle systems to create stars in my space sim project. The star is made off 2 particle systems: star surface (max particles: 500) and corona (max particles: 250), both use the Mobile/...
0 votes
2 answers
4k views

How does billboarding 3D sprites affect performance?

I was reading the Unity manual on trees and one of the claims made is as follows: Unity uses optimisations (eg, billboarding for distant trees) to maintain good rendering performance... I was ...
1 vote
1 answer
274 views

How to understand when and where overdraw occurs

I've realized that I don't have a clear understanding of some of the technical specifics of overdraw in Unity. I often work on mobile, where overdraw is much more of a concern than it would be on a ...
10 votes
2 answers
2k views

XNA stuttering at regular intervals

I'm trying to do hardware instancing but I'm hitting some strange performance problem. The average framerate is around 45, but it's extremely choppy. Windowed SynchronizeWithVerticalRetrace = false ...
0 votes
1 answer
61 views

How to get better performance with pygame?

I'm not a gamedev, I'm a API/Cloud dev, performance has never been an issue for me since most of the time we are limited by network calls. I've been playing with that for the past 2 days, I wanted to ...
1 vote
1 answer
181 views

How to deal with large number of Navmesh Agents?

I have more than 200 units in a single scene, all of them use Unity's NavmeshAgent to set their destinations to the main target. The problem I'm facing is that some ...
3 votes
3 answers
4k views

Is there a difference between using one large mesh with 100k polygons and using 1000 meshes with 100 polygons each?

I'm planning on creating a first-person shooter for mobile. Now I know that fps games usually have a lot of meshes in the scene (trees, buildings, terrains, etc.). So I've been looking at a lot of ...
0 votes
1 answer
61 views

Why might performance of a Rust-sdl2 project be better while profiling?

I'm making a simple SDL2-based Rust game, on an OSX laptop. Graphics mostly involves drawing lots of colored squares to the screen. Performance is really slow for what I'm doing, so I decided to ...
1 vote
1 answer
70 views

Is it better to cut floor polygons where they're hidden under objects?

I have a floor that's interrupted by several objects sitting on top: Would it be better for performance to let the floor polygons extend straight through the footprints of these objects? Or should I ...
0 votes
1 answer
131 views

Why do modern games take so long to reset the current level after failing?

While recently playing a game I kept failing at, I realized that I don't fully understand why I need to wait for the level to reset at all. Taking time to load a new level makes sense to me - assets ...
0 votes
0 answers
50 views

Game FPS for smooth animation

I'm designing a 3D game. I have a question about object animation. My question is in case i ensure the 6o FPS game run (on some today's average machine) the distance object is being moved (for e.g. in ...
1 vote
1 answer
334 views

How fast or scalable is wave function collapse?

Specifically the generation part, if I wanted to use it at high resolutions. High level descriptions make me suspect O(n²) or worse, and demos are always low res, but fast-wfc describes itself as &...
1 vote
1 answer
139 views

Why does it take around 5 times longer to sample large RenderTextures vs. sampling large Texture3D/2Ds in a Compute Shader?

Firstly I am in Unity 2021.3.11f1 using DX12. So the situation is the following. I have a large 3D RenderTexture, and I have a large 3D Texture3D with the same data, same format, same dimensions, same ...
1 vote
1 answer
175 views

Can less than 30 FPS feel good with 60 FPS input handling?

2D animation can go as low as 12 FPS and still feel good to watch, but the minimum FPS considered to be "playable" in games is 30 fps. I believe this to be a consequence of the user ...
2 votes
1 answer
311 views

In C#, is there any performance reason to implement ECS?

The formal ECS specification was developed to address gaming in a JavaScript environment. In any C# translation, this implies all of the classes' members must be public. My concern is that too many ...
174 votes
10 answers
35k views

Why is it so bad to optimize too early?

After looking into optimization a bit, I have discovered (literally everywhere) that it seems to be a universally recognized sin to optimize a game too early. I really don't understand this, would it ...
1 vote
1 answer
1k views

Why is creating my sprites so slow?

My 2D Unity game has tiles and layers. It creates one game object per tile, anywhere from 100 to 10,000. To create 3,000 game objects takes 68 msec, which is just fine. But setting up the sprite and ...
0 votes
1 answer
61 views

Pattern for scripts that should only update when in trigger range

I have a script that triggers when the enemies are in range of my objective, but it also contains an Update method for its the damage. I noticed that Update is being called even when the enemies are ...
2 votes
1 answer
1k views

How to render a large tile-based 2D world efficiently (using JavaFX/ScalaFX or more generally)

I have a file tileset.png containing a dozen 32*32 tiles. When my game starts, it generates the world randomly with the available tiles and the size of the world ...
1 vote
0 answers
62 views

Improve performance of hexagonal tiles

I am trying to create a game similar to a board game on a hexagonal grid (also similar to Civilization game). I want the tiles to be able to display various textures and of course be able to detect ...
0 votes
1 answer
64 views

Will putting Screen.orientation in Update affect the performance?

If I put Screen.orientation in Update to detect whether the device is in landscape orientation, will it affect the game's performance? ...
0 votes
0 answers
66 views

Unreal Engine editor slowing when Blueprint window open

All of UE my projects are slowing down as soon as open any window (e.g material, blueprint). And as soon as I close the window editor starts working fine. I tried: on version 4.27, 4.26 Created blank ...
0 votes
0 answers
95 views

Random near zero FPS drops on Android

In our Unity game, we're seeing a problem that we cannot solve for weeks. At random points in the game, the FPS drops to zero and nothing moves for 3-4 seconds, then everything gets updated in 1 frame ...
3 votes
2 answers
2k views

XNA game randomly drops to 40fps

I have a fairly straight forward 2D game written in XNA. I'm finding that it arbitrarily drops from 60fps to 40fps. I've tested this drop extensively and have concluded it's not related to graphics ...
0 votes
1 answer
58 views

Blender exported model is giving better FPS than creating the meshes in Unity

I am experimenting with Hex grid layouts and testing the most efficient way of building a hex map. I tried 2 things: Build my own hex mesh using 6 triangles and 7 vertices Use blender to create a Hex ...
0 votes
1 answer
159 views

Does the scale of a background image affect performance?

I have a background that's a half-square shape. If I increase the size of the background, for example by adjusting the scale of the model from 1x to 10000x, will this affect the performance of the ...
1 vote
0 answers
132 views

Mobile device heat up. What time before it heats up is considered good? Android/IOS Unity [closed]

could not find anything that answers this in a detailed way ? I managed to optimise the game to the point that the device heat up(real heat up and frame drop) only after 90 min of continuous gameplay. ...
0 votes
1 answer
49 views

Trying to debug slow DrawIndexed calls. 0.1+ms CPU usage per call

I have just been reworking my rendering pipeline. There is an issue I had noticed cropping up during this work but now its become constant and I cant figure out the cause. Every call to ...
0 votes
0 answers
74 views

LWJGL removing voxel faces that are not visible

I am simply trying to achieve removing voxel faces that are not visible.What I have coded simply renders a chunk of 16x16x16. I already have back face culling enabled, which it does work. so as I'm ...
0 votes
1 answer
142 views

Is there any performance difference between Draw() and DrawInstanced(1)?

The background of the question is, does it make sense to introduce an if case when drawing a mesh for whether there is instancing or not? This is using DirectX 11 ...
15 votes
2 answers
3k views

Is precomputed pathfinding still relevant?

Context Old Lucas Arts (ScummVM era) point and click graphic adventure games used precomputed pathfinding. Here's a rough outline of the technique. Step 1 The floor in each room was divided into ...
0 votes
1 answer
1k views

Unreal Engine 5 does not use shared VRAM

I have a HP Pavilion laptop with an integrated Intel Iris GPU, as well as a dedicated Nvidia Geforce MX 450. The Nvidia has a dedicated 2 GB VRAM, and the the two cards share an additional 16 GB of ...
2 votes
1 answer
292 views

Efficiently find all points within a circle

I am writing code that requires me to find all points within circle on certain parts of the screen hundreds of times per frame. I wrote a quadtree for this and have 1 method called query_circle that ...
10 votes
3 answers
4k views

How can I shorten the length of time spent on finding a path using my A* pathfinding code?

I am working on a game where the player and enemies move between discreet tiles, with only orthagonal movement (like pokemon). The game also runs on a turn system, so the player makes a move input, ...
1 vote
1 answer
508 views

Efficient way to check collisions for many objects

I am making a Bloons tower defense game and I came across a problem with regards to collisions. The way my code currently works is all the current bullets on the screen(could be potentially thousand) ...
1 vote
1 answer
199 views

Camera animation stutters on first launch

The camera stutter for a fraction of a second when animating a camera from one position to another position. This issue only happens when the game is launched for the first time after installation. ...
8 votes
2 answers
622 views

Efficiently updating building effect radius coverage

I've already searched for answers but I was not able to figure out the best approach for handling expensive functions/calculations. In my current game (a 2d tile-based city building) the user is able ...
1 vote
2 answers
406 views

Efficiently determining which buildings are connected by roads

I have a question about the most effective way to detect road connection in a tile based world. Some time ago I already asked for "How to improve performance for expensive functions in 2d city builder"...
1 vote
1 answer
182 views

What would be a suitable way to model projectiles in an action game?

I'm designing a 2d fighting game in which characters can shoot out some projectiles like arrows, ninja knives, Hadouken (like the one in Street Fighter), etc... My current character design is ...
0 votes
0 answers
35 views

How to increase performance of Android AR scene

I'm wondering how to improve speed on this scene for AR on Android, since it's still sluggish. From what I could see, Unity instanced the particle system meshes automatically (is that correct?). I'm a ...
0 votes
1 answer
308 views

High CPU usage with Godot tilemap

I am using Godot as my game engine and I am making a basic 2D game, I have a small map with 1 Player and 5 Enemies walking around in it. The game includes some basic code for walking and shooting at ...
0 votes
0 answers
65 views

How to quickly calculate the number of tiles between buildings in a tile system

my friend and I are currently working on a city builder game like Anno/Cities Skylines but with some own ideas and tweaks. (of course, on a much smaller scale) Currently, we are struggling a bit with ...
0 votes
0 answers
111 views

Handling big maps server side

How do games handle arrays/objects of billions of lines to load every gameobject/players positions of big maps for example (server side, for authoritative servers)? I understand it could be split ...

1
2 3 4 5
15