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
2answers
48 views

Collision detection enhancement

I am developping a spaceinvader-like game. There comes the problem of how to handle collision detection. At first I was doing like that : forEach(fireBall : fireBalls) { forEach(stormTrooper : ...
0
votes
0answers
29 views

Is there some general tips on optimizing openGL applications? [on hold]

I'm working on my very first OpenGL game, and since it's mostly ment as an educational exercise for myself I have until now not spent much time worrying abouyt performance. However, I've reached a ...
0
votes
2answers
89 views

Optimizing Collision Detection in a 2D Game

I am optimizing my "little" Java (LibGDX) shooter game, and perhaps unsurprisingly, collision detection is a "bottleneck"; I've kind of reached my performance goals already, but I want to tweak the ...
1
vote
0answers
58 views

Phaser noob: Why is my Phaser game jittery? [closed]

I'm just getting started with HTML5 game development, and I'm very impressed with the quality of Run Pixie Run and bunnymark in both desktop and mobile, so I've started making a game using Phaser ...
0
votes
0answers
50 views

Java Graphics performance issue when drawing transparent shapes

I've started working on a game engine for fun with no external libraries. I've started creating a simple particle system and I've come to some huge performance issues. I have the following frawing ...
6
votes
1answer
1k views

How to profile CPU and GPU performance if I have a monster PC?

I'm going to upgrade my PC soon. I'm worried that I will no longer spot performance losses in my game because of the better specs. I can check memory usage easily, but how do I check and debug CPU ...
0
votes
0answers
34 views

Does Unity's “Compression quality” affect ETC2 compression?

In Unity I am using "Advanced" texture options on Android with ETC2 8-bit compression. There is an option for "Compression quality" as described here: ...
0
votes
0answers
26 views

Additive blend over camera preview

I am using SurfaceTexture to draw camera preview through opengl after applying blending but new camera preview frames overwrite my previous frames although i am not clearing my color buffer. I want my ...
1
vote
1answer
45 views

What is the fastest way to know if the current coordinate in screen-space is odd or even in GLSL/GLES2 frag shader?

I want to make a post-effect where every second column of pixels is colored differently, and I want to implement this as a GLSL fragment shader on GLES2. The question is what is the most effective way ...
2
votes
1answer
176 views

Avoiding memory allocation in Android game development

For obvious reasons, allocating memory on the fly in Android game development is not recommended. For example: http://developer.android.com/training/articles/perf-tips.html: There are two basic ...
2
votes
3answers
259 views

Issues with ECS performance

I'm currently implementing ECS in "classic" sense, as defined by this wonderful post, where we have Entities, Components and Systems. And I'm having a serious (for me) performance issues. They come ...
4
votes
4answers
294 views

How do I prevent receiving data from the network from dropping rendering frames in a multiplayer game?

I'm building an HTML5 massively multiplayer online game. I've been working on this project for awhile, but am having some trouble sorting through a couple of performance issues. Since this is a ...
0
votes
1answer
32 views

Heuristics used for determining device performance

Often times PC games offer an elaborate settings page which lets you turn 20 different knobs. Users can modify these settings at will in the pursuit of performance, or conversely, visual quality. ...
2
votes
2answers
526 views

Store values or calculate values [closed]

We're talking about fairly anal levels of optimisation here that I wouldn't really worry about in anything other than mobile games. Let's say for example you were drawing a texture to the screen in a ...
8
votes
3answers
357 views

Cache misses and usability in Entity Systems

Lately I have been researching and implementing an Entity System for my framework. I think I read most articles, reddits and questions about it that I could find, and so far I think I am grasping the ...
0
votes
1answer
78 views

LibGDX Box2D TileGame Efficiency

I am trying to implement Box2D into my top down tile game in LibGDX. Each world consists of a set of chunks, and each chunk is 16 tiles wide/long. The maximum/minimum chunks loaded at one time is 9 (a ...
4
votes
1answer
119 views

Large 2D Arrays Causing Garbage Collection

I've been working on a game in Java that, for this post's sake, looks like Terraria and has random world generation. I've been using Vectors to contain my tile/block objects, but recently due to the ...
2
votes
2answers
81 views

Traditional Chunk Loading vs. Chunk Swapping

I'm designing a voxel-based game (aren't we all?), and just yesterday implemented infinite terrain generation. I'd already had the terrain generation working off of simplex noise, so this wasn't a ...
6
votes
1answer
207 views

Why does accessing a uniform float make my shader more than twice as slow?

My fragment shader was significantly slowed down by a recent change, and I've been trying to understand why. I isolated the main slow-down to accessing a single particular uniform float. If I include ...
0
votes
1answer
46 views

Grants a Higher Texture downsized a better quality than a texture with the downsized resolution?

if i use a texture in a game with a resolution of 128*128 for a tile which is actually 64*64 on screen and both textures show the same image just in different resolutions. One in 128*128 and one in ...
3
votes
1answer
347 views

OpenGL - Drawing multiple meshes at once using VBOs and IBOs

I have been learning OpenGL 2.1 but using shaders, VBOs, IBOs, etc. I have gotten a rendering engine that can load and draw meshes, materials, forward lighting (no shadows yet), SceneNodes, and ...
3
votes
1answer
64 views

CSS Sprite position updates slow due to addition of 'px'?

I'm moving fewer than 10 position: absolute elements around the screen. An enormous amount of CPU time (profiled in Chrome as (program) i.e. native code) is used where I do the following: style.left ...
0
votes
0answers
44 views

Casting every received packet as struct?

What is the best performant solution to handle received data from socket, in a MMORPG game? Is it good to have something like: [StructLayout(LayoutKind.Explicit, Pack = 1)] public struct LoginPacket ...
4
votes
1answer
199 views

How to describe the performance requirements for a PC game?

System requirements describe the minimum specifications of the hardware and software required to play a game, in terms of performance and compatibility. Some requirements are clear-cut, like the ...
0
votes
2answers
66 views

Performance Difference Between Content.Load and Texture.FromStream xna

Is there any performance difference between Texture2Ds loaded using the content pipeline and Texture2Ds loaded using Texture2D.FromStream()?
0
votes
0answers
44 views

2D Game with a big block-based Map - Create for each block one block-object? [duplicate]

I'm working on a 2D game in Java which will be similar to Terraria (Mincecraft 2D). I want to generae the world-map random. The world (the ground) consists of 32x32 blocks. How I should handle all ...
2
votes
1answer
59 views

Impact of object's statistics on the rendering

Consider two 3D objects with n points and n triangles. One of the objects has a smooth surface such as a ball or a box, and the other object is like a fuzzy onion-layered object with large ...
1
vote
3answers
205 views

Why are huge polygon amounts bad?

It is always said that the polygon amount of a single modell must be as little as possible when it comes to realtime simulations such as computer games. (Or at least lower than when rendering a movie) ...
5
votes
1answer
571 views

glDrawElements vs glDrawArrays for polygons that do not reuse vertices

Is it better to use glDrawElements or glDrawArrays when not reusing vertices? There must be some difference, otherwise people would always use glDrawElements? I suppose the question could be ...
16
votes
4answers
3k views

Is there any harm in having the main game loop run uncontrolled?

I was wondering if there is any possible harm when my game loop runs as fast as the system allows? I currently have a loop, that, by measuring passed time in nanoseconds, runs the game logic and ...
1
vote
0answers
98 views

OpenGL ES 2.0 state management best practices [closed]

I use a game engine with dynamic sprite batching for 2D games on mobile platforms (MOAI SDK). It already handles redundant state changes pretty well - with the use of texture atlases it only flushes ...
0
votes
1answer
182 views

3D picking for mouse move event

I implemented color picking recently and I would like to use it as kind of highlight when mouse is over an object but I am concerned about performance. Color picking requires whole frame to be drawn, ...
1
vote
2answers
51 views

Add Objects in LWJGL without using glTranslationf function

It is possible to add an object in LWJGL without using translation function (glTranslatef) ? and if it is possible does this improve somehow performance ?
1
vote
2answers
270 views

Is it possible to create 3d games with good performance in java? [closed]

Recently i use Javafx 8 for creating small 2D games , but i think it can't manage memory and other things very well .I see Jmonkey jmonkeyengine as a game engine for Java and i see some videos of ...
2
votes
1answer
109 views

Best practice for organizing the physics of objects?

Apologies because this is a long post and I am inexperienced. I would really appreciate the input from some experienced developers. These are my two goals for this project: To learn the best ...
1
vote
1answer
77 views

OpenGL - Buffer Usage

I am currently working on a little OpenGL project. At the moment I am trying to find a good solution for rendering multiple objects. I have set up a terrain with its own buffers, which works just ...
8
votes
1answer
130 views

How can I profile the speed of my vertex and fragment shaders separately?

I'd like to know how I can check to see if either my vertex or my fragment shader is a bottleneck in my rendering pipeline. I've read about using glQueryCounter with the GL_TIMESTAMP target to get ...
7
votes
1answer
165 views

Slow uniform array in shader causing FPS drop

I'm trying to use an uniform array of matrices in my compute shader. However, it's really slow. I've narrowed it down to this lines of code: uniform mat4 someMatrixArray[64]; ... vec4 result = ...
0
votes
0answers
49 views

How to I coordinate a camera with the eyes of a model?

I am currently working on an FPS in XNA and I wanted to know how I would position the camera at the eyes of the model and whenever the model rotated or moved it's head (where the eyes are), the camera ...
0
votes
0answers
20 views

Manual occlusion culling with glDrawElements [duplicate]

How should I go about doing occlusion culling with glDrawElements? I am dealing with voxel-like terrain. I want to avoid drawing the faces that are facing another block. I just don't know how to ...
2
votes
1answer
641 views

Drawing and scrolling very large zoomed tilemaps

I've been working on my game editor and doing some performance tests. In the meantime I realized that my editors performance goes significant down if I draw a large map and zoom it. 100% zoom = 112 ...
1
vote
1answer
105 views

How can I can I reduce the write load on a database for an MMO?

I am considering using MySQL as a database for storing the character states or the world for that matter. The thing is if I will save the character data on an interval, thus giving rest to the mysql ...
1
vote
1answer
170 views

Multithreading issues - Frame skips [closed]

So I am trying to multithread a Voxel engine in C# made with Sharpdx and I am having a few issues: This is the class I have : #region using System.Collections.Concurrent; using ...
7
votes
2answers
766 views

Java single Array best choice for accessing pixels for manipulation?

I am just watching this tutorial https://www.youtube.com/watch?v=HwUnMy_pR6A and the guy (who seems to be pretty competent) is using a single array to store and access the pixels of his to-be-rendered ...
0
votes
1answer
123 views

Frustum culling vs draw calls

In a more performance-sensitive environment than a desktop CPU/GPU (namely a mobile device) is there really a point in determining whether or not to skip drawing non-visible objects vs reducing the ...
3
votes
1answer
299 views

storing user data for rpg

I'm creating a single player Web rpg that will store a decent amount of information about the player, items, map, npcs, etc. I have been developing html5, javascript, php, and the mysql database ...
3
votes
2answers
288 views

How can I improve my collision detection's performance?

I'm new to programming and want to speed up the collision detection in my C++ 2D platformer game engine. Currently, only the player's collision detection works: Every frame, the player's update ...
1
vote
1answer
123 views

Can I use a list sorted by Morton Code for broad phase collision detection?

Until now I used a list of objects sorted by a single axis for limiting the amount of objects that collisions are checked against. The idea is simple: if the x coordinate of two objects differs by ...
1
vote
0answers
120 views

Theoretically, If GPUs were equipped with faster memory access, how would that impact game development? [closed]

According to NVIDIA memory access time will no longer cost a noticeable overhead. Regardless if it's true or not, I would like to know: How it would affect games in practice? How will it translate ...
2
votes
0answers
82 views

SVG—rendering performance

I have created a jump'n'run browser-game based on SVG. The »World« grew large (~80px * ~20000px, before scaled to viewport height) and rendering went slow. In consequence I included a range searching ...