Questions tagged [game-engine]

Use this tag only if you are creating or modifying a game engine framework, or if the game engine you use doesn't yet have its own tag on Stack Overflow. Otherwise use the engine-specific tag(s).

A game engine is a software framework designed for the creation and development of video games.

Some game engines even include a suite of visual development tools in addition to reusable software components and an asset pipeline that takes care of pre- and postprocessing resource files.

Many so-called "game engines" only provide real-time rendering capabilities instead of the wide range of functionality (physics, collision detection, pathfinding, user interface controls, AI, etc) needed by games. These engines rely upon the game developer to implement the rest of this functionality and are more correctly referred to as a "graphics engine" or "rendering engine".

3791 questions
5
votes
7 answers

while loop or Thread.sleep()?

I'm programming a game in Java and I limit the FPS to 60. I figured out 2 different ways to get the same result, but I'm wondering which of them is the better/cleaner way to do it. Or maybe you have a different idea. while(System.nanoTime() -…
Dominik Fuchs
  • 53
  • 1
  • 1
  • 5
5
votes
1 answer

How to calculate specular contribution in PBR?

I'm trying to implement physically-based rendering (PBR) in our project (we started a small game engine for academic and learning purposes) and I cannot understand what is the right way to calculate specular and diffuse contribution based on…
TheCrafter
  • 1,909
  • 2
  • 23
  • 44
5
votes
2 answers

In computer graphics, what's the difference between a UVW mapping and a UV mapping?

In working with textures, does "UVW mapping" mean the same thing as "UV mapping"? If so why are there two terms, and what is the "W"? If not, what's the difference between them? [Wikipedia currently isn't illuminating on this question:…
RD1
  • 3,305
  • 19
  • 28
5
votes
5 answers

C# delegate performance in xna game

I am currently developing a C# .net xna game engine. I have been trying to figure out a way to have an update manager / scheduler / event system. I currently am using delegates to provide a way to create dynamic scheduled tasks and events. I have…
Chris Watts
  • 2,284
  • 4
  • 23
  • 28
5
votes
2 answers

why is my Win32 gdi+ game unusably slow on Windows 7?

[important new information available below at bottom of this entry] I have what I believe is a very standard game loop using GDI+. It works reasonably well (about 25 fps for a complex game, 40 fps for a simple game) on Vista and XP. When I run it on…
M Katz
  • 5,098
  • 3
  • 44
  • 66
5
votes
3 answers

Calling many methods of many objects many times per second

I have a structure like that abstract Class Entity { //some variables... //some methods ... public abstract void render(Graphics g); } Thats the parent ..Now I have 3 children.. Class A extends Entity{} Class B extends…
5
votes
2 answers

Waiting for touch input without blocking game thread

I have recently been developing a game for android. The game is of a similar format to the classic Pokemon games (quite complex). I have got quite far without any problems. However, I am finding it difficult to develop the dialogue (typewriter text)…
rodit
  • 1,746
  • 2
  • 19
  • 33
5
votes
2 answers

What can be a minimal example of game written in Haskell?

Update after three months I have an answer below using netwire-5.0.1 + sdl, in a structure of Functional Reactive Programming using Arrows and Kleisli Arrows for I/O. Though too simple to be called a "game", it should be very composible and very…
Carl Dong
  • 1,299
  • 15
  • 26
5
votes
1 answer

Box doesn't roll in Bullet Physics

As you can see in the image, The Box doesn't roll but slides on the slope. Here is how i create the box in code, config = new btDefaultCollisionConfiguration(); dispatcher = new btCollisionDispatcher(config); broadphase = new…
shan
  • 1,164
  • 4
  • 14
  • 30
5
votes
2 answers

DirectX/C++ 3D Engine programming: Learn now, or wait for DirectX 12?

I'm a relatively ok-ish programmer, but my main focus has been in application development with C# so far. I have almost zero experience with game development and 3d engines - I've begun reading up on how 3d Engines work in general, e.g. there was a…
Bogey
  • 4,926
  • 4
  • 32
  • 57
5
votes
3 answers

Visual Scripting vs Coding

Happy Thanksgiving, First of All, I have been searching to know if Visual Scripting is a new thing that have been made for game engines. Let me show you some example of visual Scripting the other thing is just regular coding like writing c++ code…
user2924427
5
votes
3 answers

What technology should I use to write my game?

I have a great idea for a 3D network game, and I've concluded that it is possible to write it in Java as an applet which will live under the web browser, just like a full software in C++. And it will look and feel the same. The main advantage of…
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
5
votes
3 answers

Best way to organize java code... multiple projects or separate by packages?

I am about to embark on a personal JAVA project in eclipse where myself and a friend create a game server, game engine, and a game based on an existing card game. The game server will come last, but for now I'd like to concentrate on building the…
codenaugh
  • 857
  • 2
  • 12
  • 27
5
votes
2 answers

Open Source 2D Game Engine that supports Hexagon Maps for .NET

I cannot find a 2D game engine to create hexagon maps for .net. The best I can find is Xconq (http://sourceforge.net/projects/xconq/) and pygame. Does anybody where I can find any? preferrably one like xconq. Thank you for your time and effort. I…
Fred F.
  • 423
  • 1
  • 6
  • 14
5
votes
1 answer

Should I register my multiplayer game's port with the IANA?

I have a piece of multiplayer game software which is approaching maturity and will hopefully be in a public testing phase soon. For informal private tests, I've been using a port number that I'm fond of, which falls in the User Port range,…
user1134918
  • 129
  • 1
  • 8