Skip to main content

Questions tagged [game-loop]

The central code loop responsible for handling the running gameplay. At its most basic state, it accepts input, resolves the actions of entities, and renders the scene.

1 vote
0 answers
127 views

My game loop looks roughly like this: ...
pan's user avatar
  • 111
1 vote
0 answers
69 views

I am a web and mobile app programmer. Compared to web and mobile app source code, I haven't seen much game programming source code. In web applications, all elements are essentially static (?), and ...
shingo.nakanishi's user avatar
0 votes
0 answers
223 views

I'm building a 2D game from scratch using C++ and OpenGL, but I've run into a frustrating issue: a simple sprite moving from left to right occasionally stutters. Tracking down the cause has been ...
Liddelfranks's user avatar
1 vote
1 answer
293 views

I'm doing a JS game with hundreds of moving physical particles. I've read the famous "fix your timestep" article. So far I've implemented basic prototype with janky game loop tied to FPS and ...
Fen1kz's user avatar
  • 195
1 vote
2 answers
338 views

I'm having a really hard time understanding Threads and their contents. What I'd like to have is a main game object (which I have) and a loop, where I can measure the time it takes for two threads to ...
Valtsuh's user avatar
  • 139
0 votes
1 answer
87 views

I have an SFML programme using window.setFramerateLimit() to determine the time step of the game. I have a game loop that looks like this: ...
Momus's user avatar
  • 1
1 vote
2 answers
450 views

I've been working on my own game engine for some time, I ideally need a way to create global function implementations to make it easy to do things within the game loop. Heres an example: ...
Pow's user avatar
  • 449
0 votes
0 answers
71 views

Why is toggle group after default time in the default script execution order in Unity?
ina's user avatar
  • 294
1 vote
0 answers
94 views

I have an custom Game Engine, made in C++ and made in Microsoft Visual Studio 2019. Currently, this Game Engine has a .sln with the following projects: TheGameEditor, which is the current entry point ...
JonathanCacay's user avatar
1 vote
1 answer
222 views

I am thinking about where to call the physics simulation. The current situation is that I first update the entities and then the physics immediately before rendering. As you can see in the following ...
Andy's user avatar
  • 13
4 votes
1 answer
809 views

I used game engines that are capable of cross-platform export: Cocos Creator, Godot, Unity, others. Some game engines have this thing, called "physics update" or "fixed update". ...
idchlife's user avatar
  • 229
1 vote
1 answer
183 views

I have the following case: I have a class called App.cs and here I have a function called Render, that runs once every frame: ...
Bogdan's user avatar
  • 111
0 votes
1 answer
423 views

I'm working on a 2D tile-map RPG with C++17 and SDL2 + SDL_Image. There are daily cycles, weekly cycles and seasons. Even a kind of weather engine provides atmosphere. The moods and times of day are ...
El_Codepone's user avatar
17 votes
3 answers
6k views

I decided to learn about building games, so I picked up C# to use it along with Windows Form - I already have C# experience, so that was the main reason I did so. That said, I tasked myself to build a ...
curiousguy_08's user avatar

15 30 50 per page
1
2 3 4 5
33