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
0answers
13 views

Nearest Vector3 to Vector3 from last frame

Suppose you have a Vector3 provider of pointcloud positions that update every frame - call it Nullable<NativeSlice<Vector3>> pointClouds Say you want to ...
0
votes
1answer
51 views

High-performance update of a bitmap grid

I need to visualize a fast paced process in .NET in 2D. I am planning to use writeable bitmap 800x40px. The idea is like this - there are objects which are represented by very basic colours and sizes ...
0
votes
1answer
64 views

Significant frame drop upgrading from Unity 2019 to Unity 2020

I used to use Unity 2019.4.22f1, but now that 2020.3.0f1 has been marked as LTS, I've decided to switch to it. For no apparent reason, it seems like my game is getting consistently lower framerate, ...
1
vote
0answers
29 views

Unreasonable CPU consumption for server build with nographics

I have built my game in server mode on Mac OS and attached profiler to it. In profiler I can see unreasonable high cpu load. Other scripts take a lot of cpu time. How can this be optimized? Vsync ...
0
votes
1answer
12 views

Unity Nav mesh lading data each frame

Hey all I had a question, I was looking into my game's performance and noticed this in the profiler: Is there any way to optimize this such as pre-generating tiles so it doesn't have to do it each ...
18
votes
4answers
3k views

How can I efficiently load huge volumes of star systems?

I am working on a space exploration and combat game, and I can create galaxies, nebulas, solar systems, and load and unload them procedurally as needed. Meaning the stars that the player can see are ...
1
vote
1answer
61 views

Is grass object amount limited in Unity?

I'm using Unity 2019.3.7f1 free version to create a small game project. I have a large terrain which I want to fill with grass. To achieve that I'm using the grass brush tool provided with the terrain....
0
votes
0answers
57 views

Speeding up map rendering

My map loading and rendering process is slow when using very large maps, so I'm looking for ways to make it more efficient. My current solution works like this: My map loader uses for loops for ...
0
votes
1answer
39 views

What is the name for the technique to use different palettes for different tiles of a screen?

I've found the keywords "subpalette" and "PPU palette", but they seem to be NES-specific. Though the idea of using a small palettes table and use 2 bits per pixel in an image (+ ...
0
votes
0answers
63 views

How to improve performance with a lot of bullets and Mirror networking

The game I have 300 enemies with rigidbodies. I also have 1 to 4 players with rigidbodies. And they shot a lot of bullets. I have 1000 bullets with circle coliders only (no rigidbodies for bullets) I'...
0
votes
0answers
32 views

16bit triangle lists vs 32bit triangle strips

When drawing geometry we may use indexed drawing, where we pass index of the vertex we want to draw in array. In this case we need to pick a topology for our geometry and the type of indices. Popular ...
0
votes
2answers
135 views

Downsides of using a 8192 x 8192 texture?

So I am using Unity to build a 2D game and one thing that I needed is to be able to render a lot (talking about 10s of thousands) of sprite to the screen so I have a custom solution that basically is ...
0
votes
0answers
23 views

Change AudioClipLoadType at runtime - Unity3D

Can I change AudioClipLoadType of audio clips at runtime? Runtime in the sense while running in a device. I was able to adjust the import settings, in the editor, by an Editor script that overrides ...
1
vote
1answer
38 views

why each game does not provide the option to download only one graphic quality, instead of having to download low, medium, high and ultra graphics? [closed]

If there is an option like this it will definitely save storage space. When you download or stream a film there is an option for graphic quality, and we only download that one graphic quality. Or is ...
0
votes
1answer
151 views

Rendering voxel data efficiently

With Metal, I need to pass in an array of primitives to the GPU to be rendered. I'm making a terrain-based voxel game like Minecraft, but I have a problem. foring ...
-1
votes
2answers
222 views

Why do we need more than 24 FPS?

Many movies (probably, all moovies, except for the most recent ones) have 24 frames per second, and we're quite happy with it. There is a thing called "Subliminal stimuli" or "...
0
votes
1answer
78 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. ...
0
votes
0answers
144 views

Android - Canvas.drawBitmap gives an awful performance

I am using SurfaceView for my game and I am loading all of the bitmaps that are the right size for the screen (pre-scaled in mipmap folder) into a class when the game starts. And I am drawing the ...
0
votes
1answer
71 views

How to fix lag in 64 bit Android devices

My game's FPS drops to 30 - 8 FPS on any 64 bit Android device but is at 59 - 60 FPS on an even lesser 32 bit Android device. I've tried unchecking Development Build on Build settings and I've tried ...
0
votes
1answer
281 views

Unity Build GPU Performance

I have been banging my head against the wall with this for few days now with no improvement.. The problem is that after build my project keeps using over 30% of the GPU. Even in the editor it takes 20%...
0
votes
0answers
188 views

Unity animation - Cull completely vs Cull transform with hundreds of objects

I am making a game with a lot of animated AI, somewhere around 500 active AI at a time. This works great so far. My one issue is how much performance animating uses up. My issue is with culling, take ...
0
votes
1answer
20 views

Using proxy servers to tunnel data between clients and world servers

Background I've read up a little on the concept of splitting the world into regions which in turn can each be run on a node within a cluster. However my game concept revolves less around zones but ...
0
votes
1answer
120 views

What is the difference between these two shaders in terms of performance?

I have implemented a two pass Gaussian blur shader in GLSL like this: ...
2
votes
0answers
206 views

Efficient communication between entities using ECS via entt

To avoid confusion about the ECS terms I'll use, I explain them here quickly. I use entt terminology and set-up my architecture like this: Entity: is only an id (...
0
votes
2answers
54 views

Switching between world and battle scene with no or minimum loading?

I am making a strategy game where the player roams a grid map. When the player encounter enemy on the map he is transferred to a "battle" scene where two armies are fighting in turn based ...
1
vote
1answer
94 views

Draw calls in Unity 3d

I have only 20 materials in my game (19 are made with textures atlas). But the Setpass call is 72. I don't understand why. I want to know how to decrease the number of SetPass call. This is a brief ...
1
vote
1answer
248 views

Is it a bad idea to store all textures in linear color-space?

I am wondering about the performance behind color-space conversions for textures during reading. If a project decides to go with a linear workflow, as in, when doing any sort of color manipulation, ...
0
votes
1answer
81 views

How to implement toroidal mapping in SDL?

I am making an Asteroids clone in SDL2. I think the kind of world asteroids takes place in is called toroidal map. I'm refering to the fact that the edges of the world are connected so when you exit ...
0
votes
0answers
12 views

Do Unity bunch up similar materials automatically?

Imagine I have materialA and materialB. materialB is a direct copy of ...
23
votes
1answer
4k views

Optimization of rendering of cube world

I have a world made of many cubes (like in Minecraft), they have only color (not texture). I am rendering them using OpenGL 3.3 core profile (GLFW3, GLAD, GLM). I am already have done some ...
1
vote
1answer
55 views

How to choose what to use in Java: Enums or Objects?

I'm in a dilemma over using Enum Types or using class objects in that particular part of my java project. Let's suppose I have an array where I constantly add and remove things from it, but I also ...
0
votes
1answer
55 views

Unity Performance: Recycling Pooled Objects OR Re-Instantiating?

Re-using pre-instantiated objects in a pool. Destroying then re-instantiating objects in a pool. Both pools are limited. When creating loads of objects which is better for performance?
1
vote
2answers
472 views

Which is better practice in Unity? GetComponent<>() or making the variable public?

There are two main ways I am aware of to modify an attached component. Say, the component attached to an object is of type Animator and the name is ...
1
vote
1answer
329 views

Is it safe to save data OnApplicationFocus and OnApplicationPause on mobile?

Unity has messages called OnApplicationPause and OnApplicationFocus. They are called on each ...
0
votes
0answers
38 views

How do I calculate sprites/frame usage on my platform's ram?

I plan on building a 2d game for mobile and possibly pc. I also plan on using sprites/frames for the animation of my 2d game. What's stopping me from doing so is because I can't figure out if the ...
0
votes
0answers
58 views

Is it more performant to index in the vertex shader or fragment shader?

I have a shader that draws 2D quads from a texture atlas using instancing. I'd like to add a feature that allows me to map each of the RGBA channels in the texture using a 5x5 matrix. For example, the ...
0
votes
1answer
31 views

Constraining ActorLocation X

My question is simple yet it's got me wondering..I'm trying to limit my character's ActorLocation's X movement by checking it each tick. If it's larger or smaller than my desired value I set it back ...
0
votes
0answers
61 views

Why don't games load assets while showing main menu?

Most single player computer games have rather frustrating pattern of loading: start game Game shows you some logo videos Game indicates it is loading (general assets are loading, that are always used)...
0
votes
0answers
23 views

Unity - paiting terrain details vs combining a large mesh

I am about to start making my landscape, and am using a low poly style. I think I'd prefer not to use the terrain system and instead just use a bunch of meshes, since all my grass/flowers are 3d ...
0
votes
0answers
167 views

C++ SFML Performance

I have recently started a project using SFML in C++. So far I haven't done much but I noticed an issue. Inside of the while(window.is_open()) loop I made a tick ...
1
vote
2answers
69 views

How to get chunks in a sphere rather than cuboid

I have a chunk system to load stars around the player. It takes a given "real" loading range (aka Unity-units of range), calculates the necessary chunk loading range (as integer), creates star ...
0
votes
1answer
128 views

Server-side “Fog of War”

I am working on my custom server for my online game and I was wondering if there is any way to accomplish this in a more performant way. Basically I will be spawning and despawning objects (such as ...
0
votes
0answers
47 views

Which communication should I use between server and client

For a school project I am creating a multiplayer game for the smartphone. I want the "GUI" to be a flutter application to cover IOS and Android. As backend I use Golang. Now I wanted to ask, what ...
2
votes
1answer
122 views

Resolving contradictions in WFC more efficiently than naive backtracking

I just recently got started with the Wave-function-collapse Algorithm (WFC) in 3-dimensional space. I got the fundamentals working and wanted to now move on to let the algorithm automatically resolve ...
1
vote
2answers
866 views

How to identify performance issues with large numbers of mods?

My current problem is with RimWorld, but in the past I had the same issue with Minecraft. Basically the game gets more fun with more mods, up until the point where performance becomes unmanageable. ...
0
votes
1answer
85 views

How can I keep track of which “rooms” characters and NPCs are in?

I have a Unity 2D project which has a player character and numerous NPCs all potentially moving (top-down) at the same time during play. The number of NPCs is not to exceed 100 (and will be, probably, ...
0
votes
1answer
441 views

When to destroy Google AdMob InterstitialAd object?

There are a few answers on this question but they don't give a satisfactory answer. I am using a singleton AdManager class that persists throughout the game. I am not sure if I should destroy the ...
2
votes
3answers
1k 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 ...
1
vote
2answers
503 views

Can I use the 2d physics engine in a 3d game (or viceversa) in Unity?

This is entirely for performance. The 2D physics are less expensive, but I require 3D for some scenes. I never need both at the same time. I know you can have 2D with an orthographic perspective in a ...
0
votes
0answers
551 views

Unity Light Baking for Best Balance between Performance and Visuals

I'm trying to optimize my Unity game. I have static objects, dynamic objects and (only) static lights. I wish to fully pre-compute lighting and shadows for the static objects while still ...

1
2 3 4 5
14