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
1 answer
34 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 ...
  • 139
1 vote
0 answers
45 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 ...
1 vote
1 answer
44 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 ...
  • 3,890
0 votes
1 answer
42 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
21 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 ...
  • 3
0 votes
0 answers
14 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 ...
0 votes
1 answer
46 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 ...
  • 101
0 votes
1 answer
90 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
44 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
0 answers
50 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
67 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 ...
  • 217
0 votes
1 answer
414 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 ...
0 votes
1 answer
37 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 ...
2 votes
1 answer
206 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 ...
0 votes
0 answers
128 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 &...
  • 101
0 votes
1 answer
137 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
96 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 beleive this to be a consequence of the user ...
  • 42
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, ...
0 votes
0 answers
29 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
0 answers
47 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 ...
  • 1
0 votes
0 answers
74 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 ...
  • 101
0 votes
1 answer
50 views

What algorithm is best for finding non-static nearest neighbors on a 2d grid?

A bottleneck I've hit is querying Quadtrees for finding nearby locations. It's much faster than comparing each location, but I'd like to find faster methods that work for moving locations. Profiles ...
0 votes
1 answer
66 views

Use of CPU vs. GPU on mobile devices

I was always told that if a task can be parrarelized, I should put it on the GPU for better performance. Although this is defenetly true for computer GPUs, I was wondering if the mobile GPUs were so ...
  • 42
0 votes
3 answers
142 views

How to prevent a huge backlog of physics calculations from freezing browser when tabbing out of browser game?

I'm developing a browser game and am using the timestep implementation from the famous Fix your timestep! article. It works perfectly, but there is one problem. If you tab out of the tab and then come ...
0 votes
0 answers
81 views

What is the most efficient way to detect collisions of a large number of similarly sized objects?

Also, the maps are around 4000x4000 (pixels) So, all the objects in my game are 2D circles, and they all have a radius of between 5 and 10 pixels. My current solution is to use a spatial hash where ...
2 votes
0 answers
101 views

Is an ECS system without a traditional ECS memory layout a bad idea?

I've got a background in C++ but completely new to game dev, Unreal, and ECS. Recently, I learned about ECS and fell in love with the resulting project structure and theoretical reduction of spaghetti ...
  • 121
0 votes
1 answer
49 views

Unity 2021 Silicon Build Performs Poorly with DynamicGI.UpdateEnvironment()

I recently upgraded my large-scale RPG world project from 2019 LTS version to 2021 for the native Silicon support. I have a Silicon based Mac and even though the game seems to have smoother FPS in the ...
1 vote
1 answer
114 views

Sandbox game: TCP or UDP

I know that UDP and TCP are not to be used at the same time, so I should only use one. I have read in this site that TCP should be used for a sandbox game. The problem is, My game is going to have ...
0 votes
0 answers
40 views

HashMaps with String keys as animation keys okay?

In my project I use an ECS system. I have a SpriteComponent that contains a map of animations. ...
0 votes
1 answer
235 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 ...
  • 45
0 votes
0 answers
127 views

How to implement crowd movement in Unity without rigidbodies?

I am working on a mobile game where its core gameplay includes a bunch of objects (can exceed 100) walking around autonomously in an environment where they push each other and get pushed by other ...
1 vote
1 answer
94 views

C# Jobs + Burst executing slowly (bottleneck?)

I'm trying to make a system where the player can do a RTS-like drag-to-select of tiles in a box to mark trees to be chopped or ores to be mined. I'm testing this system on a large scale, possibly ...
0 votes
0 answers
18 views

More smaller scripts or less larger in Unity 2d Development? Better or worse performance? [duplicate]

In my unity 2d game I had large amount of scripts which were components of different enemies and obstacles. All of them were checking for collison, had FixedUpdate, Start and OnCollisionEnter2D and ...
0 votes
0 answers
97 views

How to Pass Multiple VBOs to OpenGL for a voxel game

I'm trying to make a voxel engine (NOT based on an octree model). Currently I have a setup with a Chunk class, which stores the following: ...
0 votes
1 answer
97 views

Libgdx pre-rendering Bitmap font to pixmap texture causes slow in-game rendering

Im using libgdx scene2d to render 2d actors. Some of these actor groups originally included scene2d Label actors for rendering static text. The Labels work fine but drawing ~20 of them on the screen ...
3 votes
1 answer
111 views

Approximating off-screen action efficiently in a simulation game?

I have a character building constructs all over a pretty large map. My game blends elements of RTS and fast paced action in a room-based environment where players can only see one room at a time. I ...
  • 143
0 votes
1 answer
84 views

Improving performance of lighting on mobile

I'm trying to make a 3D game for mobile. When rendering a very simple scene, my performance drops from 60 fps to 30 fps when I use fragment shader lighting instead of vertex shader lighting. I really ...
  • 42
3 votes
1 answer
248 views

Should you avoid memory allocation and deallocation while the game is running?

I recently read this answer on this site, which says the following: making sure no allocation/deallocation is being done while the game is running is a golden rule of thumb. I interpret this as ...
  • 145
0 votes
2 answers
69 views

Make materials higher quality as the user gets closer

Scenario I have a sphere with an low-quality earth texture on it. I also have a much higher quality earth texture (Gigabytes in size) that I can use but it's too performance intensive to use on most ...
  • 191
1 vote
0 answers
210 views

What Unity editor settings maximize the editor performance?

I am teaching a Unity game development course through Zoom, and apparently the load of both Zoom and Unity is straining my 3 years old laptop. I would like to change some settings in the Unity editor ...
1 vote
0 answers
34 views

Is treating object meshes as nav meshes a sensible strategy for grounding characters?

It bothers me that a lot of character controllers are written to rely on raycasting for movement along the ground. While this solution is very straightforward and general (especially in the sphere ...
0 votes
0 answers
107 views

How can I efficiently and safely represent and query game state in the logic programming paradigm?

After learning Dialog, I've discovered representing game logic using the logic programming paradigm is a lot of fun; the composability and non-locality makes it feel like some kind of superior ECS. ...
1 vote
2 answers
163 views

Is it plausible for Tetris to be running at around 250 fps on a laptop?

I coded a simple Tetris game to for some programming practice. It has all the features you would expect from Tetris, like rotating shapes and clearing rows. I implemented a frame rate measure tool out ...
  • 145
1 vote
1 answer
105 views

Seeking a more elegant solution to set buttons so they can increase specific ability level and stats

...
  • 23
11 votes
3 answers
4k views

Performance degrading when resolution increases for a 4k screen

I am new to Unity. I have a problem where my game has good performance on my non-4k screen. Bur when I play it on my 4k screen, the performance gets really bad. It looks like the resolution is ...
  • 219
0 votes
1 answer
220 views

CPU / GPU usage are both below 100% - what is bottlenecking my game?

I've been developing a C++ OpenGL game for the last couple of months. A few weeks ago I was profiling the game and I noticed that the GPU usage was almost at 100% (with the framerate uncapped). I ...
1 vote
1 answer
217 views

How does a game like slither.io handle collision?

This question can be generalized to "how does one efficiently determine if a collision has taken place between curvy lines" On https://slither.io there are snakes that players play as that ...
0 votes
0 answers
784 views

Character controller versus nav mesh agent for wandering?

I'm starting to work on the AI for my game, and one character will need to wander around aimlessly until one of its other states are triggered. With that, and after plenty of searching, I found a ...
0 votes
0 answers
111 views

Unity3d performance issues on macOS

I created a game prototype in Python, using Panda3D. I finished entire MVP game logic, prototype assets, networking (client and server side), created rudimentary UI, and everything is working well. ...
  • 133
0 votes
1 answer
174 views

Why are clipping planes... plane?

A frustum is used to clip geometry, deciding which parts of it are visible. It seems that most cameras use a frustum shaped as a pyramid segment, i.e. a box between two rects of equal alignment on ...
  • 121

1
2 3 4 5
15