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.

learn more… | top users | synonyms

0
votes
1answer
15 views

How to combat exponential growth in sprite messaging?

In my 2D platformer game, I have a number of sprites moving around the world. When two sprites collide with each other, I calculate how deep the collision is and then call a virtual method on both ...
0
votes
1answer
64 views

Drawing bullets on a map

I'm going to be making a shooter-style game, on a navigatable map (All 2D). I'm a little unsure of how to handle the bullets: I see two main ways i could do it I could have the bullet's x and y ...
-1
votes
1answer
47 views

How to create video game music [closed]

I am a solo indie game dev,I kinda know gamemaker studio,I have fl studio 12. I really want to know how do I make my OWN video game music,I did a megalovania remix from undertale,Its not the full song ...
0
votes
0answers
12 views

Is it possible to not include or erase AABB data from a procedurally generated mesh with Renderer?

I am procedurally generating many thousands of very simple meshes with very simple texture (the same for all meshes and instances) in Unity (5.3.4) with C#. Currently they take more than 100MB in ...
0
votes
0answers
47 views

WebGL Primitive Batching unexpected performance

I'm kinda new to WebGL in general, I've started to make some batching experiences on primitives (just drying a bunch of rectangles by using a combination of two triangles repeatedly). I've started by ...
1
vote
2answers
50 views

Reducing draw calls in a y-sorted orthogonal world

This is a hypothetical question, as I haven't yet come across the problem of making too many draw calls, but for my game I am aware that this could become a potential problem. The style of my game is ...
-1
votes
0answers
37 views

Performance issues: is static batching possible in Unity for runtime-generated meshes?

In order to profile a sub-system of my game, I set up the following test in Unity 5.3.4. I create a simple equilateral triangle on the fly and then I instantiate it 10 thousand times, at random ...
0
votes
0answers
13 views

Occlusion Culling Open-World Implementation (Using Unity)

I was curious how people generally do occlusion culling. What techniques are most widely accepted for performance and also where can I learn more about these? The material I can find online seems ...
2
votes
4answers
569 views

Why is my A* Pathfinding incredibly slow?

I'm trying to use A* to make my enemies move about, but it takes up to 20 seconds to get a path to walk. My grid is only 64*64. This is my code: #include "AStar.h" #include "Node.h" #include ...
0
votes
2answers
158 views

A* pathfinding takes too long, shortcuts needed

So I have a game where the player can move on a grid 108 X 192 large. It uses a simple A* path-finding algorithm to move. Unfortunately, After 0.03 seconds, it would have only looked at about 300 ...
0
votes
1answer
65 views

Rendering three-dimentional array of tiles (as a tilemap)

I'm trying to create 2d game engine in C++ using SDL2 (actually some code was migrated from SFML). I want to have a flexible multilayer tilemap that can store different types of tiles. My current ...
0
votes
2answers
90 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 ...
4
votes
2answers
145 views

Is there a way to turn collision detection system off completely in Unity?

My world setup is 2D Top-Down. All collisions are disabled from the collision matrix. There are no collisions in the scene as I wanted, but as I perceive, Unity is still trying to calculate ...
4
votes
1answer
128 views

How can I reduce the draw calls in a split screen game?

I am working on a split screen game with one camera per player. It appears that the number of draw calls is multiplied by the number of cameras I have, which makes perfect sense. More cameras means ...
0
votes
2answers
64 views

How to optimize my random terrain generation and usage?

I'm new to Unity. I've created an algorithm to procedurally generate a circle-shaped tunnel made of primitive cubes GameObjects. The problem is that the game is very laggy and I can understand why: ...
3
votes
1answer
89 views

Does marking a GameObject as static actually improve performance?

I'm currently working on a small game that will include somewhat large levels. Each level will have a somewhat large amount of GameObjects lying around as props. I was told by a friend of mine that ...
0
votes
1answer
32 views

How do I interpret the differences between the “Time” and “Self” columns in Unity's profiler?

I'm not quite understanding how to read the results of the profiler: A method Pathfinding_NodeAdjuster.CheckSpecificArea() method is using up 94.7% of the BehaviorUpdate overall time, while taking ...
0
votes
0answers
37 views

Why would somebody want to turn off v-sync? [duplicate]

From this recent article about technical limitations of UWP, I've found inability to turn off v-sync listed as a negative point. I understand lowering graphics settings like texture quality, various ...
4
votes
1answer
76 views

Unity scene performance - better to use one scene and toggle what is active?

Unity scene performance questions In Unity, were one to have a scene that is basically identical in all but a few ways, would it be better to keep them as separate scenes, or to have them be one ...
3
votes
2answers
154 views

When should I mark GameObjects as Static?

Here is the corresponding Unity documentation. According to explanations of Unity documantation pages about Static GameObjects, sometimes marking GameObjects as static may effect performance in a bad ...
1
vote
1answer
155 views

Performance of glDrawElements vs glDrawRangeElements vs glDrawArrays

I've looked around on the web trying to find a good answer to this, but am unable to find one. Different forums mention driver bugs and the likes, but these discussions are usually almost 10 years ...
1
vote
1answer
84 views

OpenGL Applications Bring computer to halt

Whenever I run any application that utilizes the OpenGL interface, my entire computer comes to a halt, but it doesn't do this when it utilizes the DirectX interface. I run both Linux (Ubuntu 15.10) ...
0
votes
0answers
80 views

Enabling VSync results in stuttering

With VSync disabled my FPS doesn't drop below 100. When I enable it my FPS sits in the 55-60 range. The issue I have is that I have fast moving platforms that move at a constant speed, so a single ...
4
votes
1answer
142 views

Does distant and large objects use up a lot CPU usage?

Okay I'm new to Unity, and I'm making a space sim pc game. You know, space is huge, light years of distance between stars. Even if I set 1 AU (150,000,000 KM) as 1 unit, 1 light year will be 63,000 ...
0
votes
0answers
38 views

Create a new layout?

After the user gets to a certain score in my game, I wan't to display a medal next to the users name. Doing this pro grammatically will make the image disappear after the user leaves the app. How can ...
3
votes
1answer
67 views

Performance differences: one empty GameObject with multiple child objects vs. single GameObject formed by pre-merging the former child objects

Imagine a robot game where robots are made of pre-built blocks. Therefore, each block is a separate GameObject, with one mesh each. I am trying to understand the conceptual differences behind the ...
1
vote
3answers
139 views

Most optimal way to load 2D world

I am creating a 2D car racing game. (Yes, a Hill Climb Racing clone) What I am doing right now is load 10% of the map every time the user gets to 7%. For example: Imagine the map has 10km. (10000m) ...
1
vote
0answers
27 views

Animated Typing Memory Usage with Immutable Strings

Right now I'm programming a game that has an animated typing effect typically seen in older 1980's and 90's role-playing games. An example can be seen here. The typing effect is generated by taking a ...
7
votes
1answer
151 views

Cossacks game pathfinding

Cossacks (released in 2002) is an RTS game where you can build huge (few thousands men per player) armies on a really big maps. Imagine Age of Empires 2 for few players on Ludikris map with no lag, ...
13
votes
1answer
1k views

Is * calling *= (or *= calling *) slower than writing seperate functions (for math library)? [closed]

I have some vector classes where the arithmetic functions looks like this: template<typename T, typename U> auto operator*(const Vector3<T>& lhs, const Vector3<U>& rhs) { ...
3
votes
2answers
1k views

Most efficient way to convert Vector3 to Vector2

What is the most efficient and fastest way to convert a Vector3 to a Vector2? Casting: Vector2 vector2 = (Vector2)vector3; Initailizing a new Vector2: Vector2 vector2 = new Vector2(vector3.x, ...
0
votes
0answers
89 views

Culling And Optimization in a 2D Orthographic Game

I'm currently developing a 2D top-down space themed RTS game. I'm building the space procedurally from a seed. At the end of generation of all space objects, if i don't apply any optimizations I end ...
3
votes
1answer
278 views

Why is my game freezing?

Ok here is what I have done. I have made a simple test game where you move a character around. I built it and installed the app onto 2 different devices (as it will be a multiplayer game later). ...
2
votes
1answer
80 views

Java 2D Game Development - Best Performance With Rendering

I have seen two different rendering methods. One of them is rendering multiple bufferedImages like g.drawImage(image1 to imagexxx, x, y). Like in my game I have to render, on each tick, 880 buffered ...
6
votes
2answers
377 views

Know if you're fully utilizing the GPU

I render ~17.000 VAOs each frame. 2.840.386 triangles. Only applying texture, nothing else. I have three computers and the performance across them is not as expected. Cheap laptop(i3-4010U & ...
4
votes
7answers
830 views

How to avoid cost comparison each and every frame?

I'm toying around with a ticker(incremental game) for JavaScript. The basic idea is that you have buttons that represent buildings, each building provides a certain amount of resource per 'tick'. ...
1
vote
1answer
110 views

Flash animation or Sprite sheet animation good for Unity mobile games

I would like to develop dress-up and cooking kind of games. So it needs lots of animations. Our designers done the animations in the lash. I found the plugins callued GAF and UniSWF to convert flash ...
-1
votes
1answer
61 views

Why not draw a custom font with lines and/or polygons?

Reasons/advantages I see: More flexible procedural animation. Completely custom font. Performance (no texturing or high-poly)? No assets (unless data-driven). Multi-resolution compared to sprite ...
4
votes
1answer
65 views

What is the fastest way of drawing simple, textured geomtries and keeping the depth test?

I'm looking for a fast way to draw simple 3D geometries - that will consist of up to 10 vertices. Each of them will have a texture (though varying between geometries). I also want to store the ...
3
votes
1answer
86 views

Ideal draw order - sort primarily by distance or material?

When it comes to pre-sorting the draw calls for a given frame, I am aware of two different methods for optimising. The first is to batch draw calls by their material. This minimises shader changes ...
2
votes
1answer
89 views

Transitioning through menus in Unity: what is the best option performance-wise? [closed]

I'm making a menu manager and I'm not sure what should I do to make a transition from one menu to the other. What is better to be used performance wise? Here is the step in my mind. Simple enable or ...
2
votes
0answers
92 views

What is Sprite Kit capable of? [closed]

I am messing around with Game Maker in my free time. I learned some Java at school but never really understood the object oriented principles. When I got to know Game Maker I was surprised that game ...
2
votes
1answer
34 views

Add navigation obstacles during runtime lags

Please watch this short video. http://screencast.com/t/vw2a5FdOOT It shows the problem. It's using the build in Unity navigation and followed the guide to build the demo in the video. Everytime I ...
2
votes
1answer
59 views

Efficient Per-Tile Lighting Technique

Quite a few of the 2D games that I have seen use per-tile lighting, where each tile has a set brightness (continuous scale of 0 to 1, for example). One way of calculating the brightness of any one ...
2
votes
0answers
147 views

unity lag while moving a sprite

I'm trying to build a 2D game for android and after I finished developing the game I noticed that there was lag present when moving objects around. I tested it on a phone much more powerful than my ...
1
vote
0answers
55 views

Techniques of graphics rendering with single CPU core? [closed]

I am interested in methods of 2d and 3d rendering using single thread on an average CPU (e.g. for programming games for old and low-end PCs). While I usually have no performance problems when using ...
2
votes
1answer
72 views

Giving values to uniform in OpenGL

First thing is that I know how to give values to uniforms in OpenGL. Second thing is that it is a question related to optimization and performance. The habit for changing the uniforms, we preferred ...
4
votes
1answer
208 views

Is this the typical approach to modern OpenGL UI & Text rendering, for mobile?

I'm implementing GUI in OpenGL ES 2.0 to fit with my application framework's existing structure. I'd like to have the UI rendering eat as little mobile processing capacity as possible. So to ...
2
votes
2answers
134 views

Low performance from unordered_map when accessing elements in member template function in derived class

I'm trying to implement a component based architecture on a game engine project. Each GameObject has an unordered_map that holds a pointer to Component base class. At this point, I only have one ...
3
votes
1answer
91 views

PhysicsJS on mobile devices: how to optimize for speed

I'm (physics n00b) developing a small animation (gamification) in a mobile HTML5 app (PhysicsJS, HTML5, Cordova, Ionic, JavaScript). This animation is derived from Basket of verlet constraints. This ...