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

1
vote
0answers
158 views

Updating physics for animated models

For a new game we have do set up a scene with a minimum of 30 bone animated models.(shooter) The problem is that the update process for the animated models takes too long. Thats what I do: Each ...
5
votes
1answer
691 views

Javascript Canvas Drawing Efficiency

I have just recently started some experiments with game development in Javascript/HTML5, and so far it has been going pretty well. I have a simple test scene running with some basic input handling, ...
1
vote
2answers
271 views

How to deal with large open worlds?

In most games the whole world is small enough to fit into memory, however there are games where this is not the case, how is this archived, how can the game still run fluid even though the world is so ...
1
vote
1answer
975 views

Using Event Driven Programming in games, when is it beneficial?

I am doing a refresher on ActionScript 3. Other than using rudimentary tools like, Event.ENTER_FRAME and using events to receive input from the user's mouse and keyboard, I find that I rarely use ...
1
vote
3answers
466 views

Will having many timers affect my game performance?

I'm making a game for android, and earlier today I was trying to add some cool stuff to my game. The problem is this thing needs like 5 timers. I build my timers like this: timer += deltaTime; ...
2
votes
2answers
740 views

Simple OpenGL program major slow down at high resolution

I have created a small OpenGL 3.3 (Core) program using freeglut. The whole geometry is two boxes and one plane with some textures. I can move around like in an FPS and that's it. The problem is I face ...
4
votes
1answer
407 views

How to use caching to increase render performance?

First of all I am going to cover the basic design of my 2d tile-based engine written with SDL in C++, then I will point out what I am up to and where I need some hints. Concept of my engine My ...
2
votes
2answers
3k views

How to check battery usage of an iPhone/Android app?

I think the title says Enough. For example Unity can generate you a report how much CPU/GPU power it's using or how fast it's going to drain device battery, but what about the applications developed ...
14
votes
5answers
17k views

Objective-C or C++ for iOS games?

I'm pretty confident programming in Objective-C and C++, but I find Objective-C to be somewhat easier to use and more flexible and dynamic in nature. What would be the pros and cons when using C++ ...
3
votes
1answer
629 views

android game performance regarding timers

Im new to the game-dev world and I have a tendancy to over-simplify my code, and sometimes this costs me alot fo memory. Im using a custom TimerTask that looks like this: public class Task ...
3
votes
2answers
262 views

Does using the XNA Content Pipline eliminate the overhead caused by file IO when working with a large number of files?

I'm working on a game in XNA with my goal being that it is fairly data driven so that I can easily tweak the system without having to update code. The research I've done shows that using XML files ...
1
vote
1answer
147 views

Only apply Advanced Graphics on high FPS Dynamically

I wonder why not prevent lags by only appying advanced optional graphics stuff when the FPS are high at time. So The game could use simpler or even no shaders and skip decorative models some time. It ...
4
votes
1answer
6k views

How to detect collision in Unity3D without rigid bodies?

The target platform of my game is mobile devices therefore I try to develop it performance oriented. It will be a strategy game so I don't really need physics in it, consequently I did not add ...
5
votes
1answer
783 views

VBO and gl*Pointer management practises?

I'm aware it's not a simple yes/no question and for the moment I can't tell if it can be simply answered, or is it topic for a long discussion which is not suitable for our Q&A format. I want to ...
2
votes
1answer
268 views

What kind of performance issues does multiple instances of the exact same object have on a game?

I'm fairly new to programming, and I've pretty much learned all the things I know on the go, while working on projects. The problem is that there some things that I just don't know where to begin ...
6
votes
4answers
4k views

Why has the industry switched from C to C++?

First of all i would like to have a real answer, i'm always trying to get more from various sources and articles, and when I read things like C++ is slow because it has virtual functions and because ...
11
votes
4answers
3k views

Is SVG a viable technology choice for web-based game?

I have started to read up about the web technology available for doing web-based game with only Javascript, but I have no where got feedback about SVG with HTML5. Is is a viable choice ? Does it ...
0
votes
1answer
593 views

Java2D Game Flickering

I'm in the process of trying to get familiar with making games in Java, using the Swing library. Coding my Snake game however, I've got to a point where the game is flickering/ghosting and I haven't ...
7
votes
2answers
383 views

Windows Phone Performance Analysis makes game run faster. Possible reasons?

A XNA game I was making was running slowly on my WP7 device. However when I started it in Windows Phone Performance Analysis to find the bottleneck, the game ran smoothly on the same device. I ...
-1
votes
1answer
574 views

Vertex shader are evil for performance?

I found that the vertex shaders are sometimes very useful, especially because they can generate geometries and extract and use a lot of informations from just 1 image. The problem is that my project ...
9
votes
2answers
869 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 ...
4
votes
2answers
402 views

Geometry vs sprites

I'm developing an android game, where the enemies are geometrical shapes. Performance is a main goal for me so I was wondering if defining shapes directly in OpenGL would be more efficient than using ...
0
votes
1answer
329 views

Optimizing hierarchical transform

I'm transforming objects in 3D space by transforming each vector with the object's 4x4 transform matrix. In order to achieve hierarchical transform, I transform the child by its own matrix, and then ...
0
votes
1answer
2k views

Triple buffering causes input lag?

Consider some time in between two vsyncs. Suppose the first display buffer is being used to display the current image, and suppose the game was really fast and computed and rendered the next image to ...
2
votes
2answers
552 views

Can frequent state changes decrease rendering performance?

Can frequent texture and shader binding decrease rendering performance? "Frequent" binding example: for object for material in object render part of object using that material "Low count" ...
8
votes
2answers
513 views

Does use of simple shaders improve performace/battery life?

I'm making OpenGL game for Android. Till now i've used only fixed function pipeline, but i'm rendering simple things. Fixed function pipeline includes a lot of stuff i don't need. So i'm thinking ...
3
votes
4answers
866 views

Higher Performance With Spritesheets Than With Rotating Using C# and XNA 4.0?

I would like to know what the performance difference is between using multiple sprites in one file (sprite sheets) to draw a game-character being able to face in 4 directions and using one sprite ...
0
votes
1answer
253 views

Xna performance [closed]

I'm thinking about starting to write a game and my primary concern is performance. I was thinking about writing it in xna (client), and then also writing the server in c#. Will this be fast enough for ...
2
votes
0answers
168 views

How to achieve best performance in DirectX 9.0 while rendering on multiple monitors?

I have read this article, and I am making use of some pixel shaders to achieve some effects. At most four shader effects can be applied at same time. What are the best practices to achieve best ...
17
votes
1answer
9k views

What is the benefit of triple buffering?

I read everything written in a previous question. From what I understand in double buffering the program must wait until the finished drawing is copied or swapped before starting the next drawing. In ...
4
votes
4answers
1k views

A* algorithm very slow

I have an programming a RTS game (I use XNA with C#). The pathfinding is working fine, except that when it has a lot of node to search in, there is a lag period of one or two seconds, it happens ...
1
vote
2answers
149 views

What calls trigger a new batch?

I am finding my project is starting to show performance degradation and I need to optimize it. The answer to my previous question and this presentation from NVidia have helped greatly in understanding ...
1
vote
3answers
246 views

Material usage, one per model or per object?

Is it better (memory, time (of developer), space) to use single model that is unwrapped and uses a single material or to break a model down into appropriate bits, each with their own smaller ...
1
vote
3answers
408 views

For the handling of buildings on a tile-based strategy game, what aproach should I use?

On a tile-based game of the strategy genre, which allows the player to place buildings over the terrain tiles, there are multiple approaches that can be taken for handling such situation. The ones ...
3
votes
1answer
521 views

Can glTexImage2D() use an already existing memory block?

Can I use glTexImage2D() and / or glTexSubImage2D() (or maybe there's some other method I don't know about) with an already existing block of memory, instead of always uploading the changed pixels? I ...
3
votes
2answers
2k views

Which opcodes are faster at the CPU level?

In every programming language there are sets of opcodes that are recommended over others. I've tried to list them here, in order of speed. Bitwise Integer Addition / Subtraction Integer ...
2
votes
3answers
569 views

std::vector performance for pixel buffers

Doing software 2d pixel buffers, blitting, etc. Someone was telling me there's absolutely no overhead involved in using an std::vector to represent objects, I was wondering if std::vector is indeed a ...
2
votes
0answers
376 views

FPS Drop after upgrading to XCode 4.3 [closed]

I'm hoping someone else has experienced this and subsequently found a solution as I am about to light my own hair on fire in frustration. Simply put, I was creating a Cocos2D app using XCode 3.2.6 ...
4
votes
2answers
257 views

What does “kTriangles/s” mean in hardware graphics benchmark reports?

I've looked around and found several sites offering benchmarking statistics for mobile platforms and I've been seeing the unit of measure as "kTriangles/s". Originally I misread this, missing the 'k'; ...
3
votes
3answers
2k views

Object pools for efficient resource management

How can I avoid using default new() to create each object? My previous demo had very unpleasant framerate hiccups during dynamic memory allocations (usually, when arrays are resized), and creating ...
1
vote
1answer
691 views

Multiple buffering in OpenGL on Windows

What is the most common way modern games perform triple buffering ? What does the SwapBuffers exactly do in terms of OpenGL states ? Is it possible to perform double and triple buffering ...
1
vote
2answers
237 views

How to track and find entities within radius in realtime game?

What is best approach to implement tracking in real time for, say, 1000 npcs? Every frame update simple a square grid (remove or insert into linked list) and every time check in square radius? I tried ...
5
votes
4answers
1k views

Can Flash games packed for iOS and other mobile devices achieve reasonable performance?

I was thinking of developing a game in Flash, as a hobby/educational project. However, I was hoping I could make it run on a smartphone, but a friend who develops in Flash says that in their ...
3
votes
3answers
224 views

When is it best to load screens in mobile games?

In the develpment of a mobile game, is it a good to load all the screens at the start of the game, or destroy and create new ones during the game? I am doing the second thing, because I suppose that ...
11
votes
2answers
2k views

How should I account for the GC when building games with Unity?

*As far as I know, Unity3D for iOS is based on the Mono runtime and Mono has only generational mark & sweep GC. This GC system can't avoid GC time which stops game system. Instance pooling can ...
9
votes
1answer
237 views

Efficient solution for multiplayer space partioning?

This question is a little tricky, but I will try to make it clear. Lets say I am building an online game (not MMO-scale), but that supports as many players as possible, in a authoritative server ...
8
votes
2answers
486 views

Automating XNA Performance Testing?

I was wondering what peoples approaches or thoughts were on automating performance testing in XNA. Currently I am looking at only working in 2d, but that poses many areas where performance can be ...
13
votes
3answers
3k views

Logging library for (c++) games

I know a lot of logging libraries but didn't test a lot of them. (GoogleLog, Pantheios, the coming boost::log library...) In games, especially in remote multiplayer and multithreaded games, logging ...
5
votes
1answer
268 views

Can I leverage the fact that my scene is often static to improve OpenGL (JOGL) performance?

My scene is drawn based on the location of several (often several million) vertices (kept in VBO's) and a camera. I can easily tell in my code when my scene has changed and when it hasn't. There are ...
2
votes
1answer
252 views

improving speed of 2d ball collision

I am making a game which has many balls bouncing around the screen (around 200-300 balls in a small area). One thing I am trying to do is improve the performance of the collision detection and ...