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
1 answer

What are the differences between Block, Stack and Scratch Allocators?

In his talk "Solving the Right Problems for Engine Developers", Mike Acton says that the vast majority of the time, all you're going to need are these three types of allocator: there's the block allocator, the stack allocator and the scratch…
doliphin
  • 752
  • 6
  • 22
5
votes
2 answers

Certain files not being bundled in ViteJS

The Bug While bunldling a Vanilla JS project with image assets, using npm run build, there was one image that was not being bundled. The image that was not being bundled was the last image to be pasted into my project I have imported all images…
stackwikc
  • 71
  • 1
  • 1
  • 6
5
votes
1 answer

Is there a way update a texture with out using a staging buffer?

I'm working with the https://vulkan-tutorial.com/ Depth Buffering code as a base. Made a few changes to update the command buffer every frame. I'm using a crude way of checking fps. Not sure how accurate it really is, but I'm using this check to the…
dhz
  • 101
  • 1
  • 6
5
votes
1 answer

Questions about Pure ECS (Entity Component System) and update systems

I have written an ECS but I have some questions about the update phase. (in systems) I have read many articles, but not found references to this sort of problems. In order to have benefits from ECS (cache friendly, for example), they are the…
5
votes
1 answer

How to handle dynamic hierarchical entities in ECS

Here's the analogy: I have an organism which is composed of cells which can be further composed of a medley of attachments. What I have currently is a sort of event chain between child/parents to handle attaching and detaching components (which…
Jugbot
  • 142
  • 1
  • 14
5
votes
1 answer

No collision is detected in n-body simulation using ReactPhysics3D

I am currently working on n-body simulation using ReactPhysics3D(https://www.reactphysics3d.com/). I made simple simulation of collision of two spheres. Then, I print the coordinates of the two spheres as the simulation runs. The problem is that…
tesio
  • 401
  • 2
  • 6
  • 10
5
votes
1 answer

Physics In Unity Game (pendulum effect)

So, i don't really know how to search for a answer to my question, i am working as a game developer for a freelance and my task was to do a "pendulum platform", That's the concept: I tried a lot of different aproaches, like, for example setting…
5
votes
2 answers

Isolate Lua bindings glue code from the rest of my game engine

I want to add full support for Lua scripting to my game engine. One of the biggest goals I set myself is to retain full modularity. That means, I don't want the rest of my engine, except for the Lua binding part, to use any Lua-specific…
Jarx
  • 51
  • 1
5
votes
4 answers

What is a good Mac objective-c 2D game engine?

Now that Apple is going to release the Mac App Store there is bound to be lots of games. I'm curious, in your opinion, what is a good Mac 2D game engine to use for game development that has an objective-c interface? Thanks
David
  • 14,205
  • 20
  • 97
  • 144
5
votes
1 answer

Android Multiplayer Real Time game, what is the best protocol/communication?

I want to develop an Android multiplayer real time game. But I'm still confuse what is the best way to do the communication. I found a few options: TCP UDP Ajax/Comet/Messaging services i.e. pubnub.com, beaconpush.com Push notification XMPP Android…
karl
  • 63
  • 1
  • 7
5
votes
4 answers

Why use integration for a fixed timestep game loop? (Gaffer on Games)

http://gafferongames.com/game-physics/fix-your-timestep/ http://www.koonsolo.com/news/dewitters-gameloop/ In the last game loop from Glenn Fiedler's Fix Your Timestep! article, he uses an update loop that advances the game logic by a fixed delta…
YeOldeBitwise
  • 133
  • 1
  • 2
  • 8
5
votes
1 answer

Cannot use vkCreateWin32SurfaceKHR to create vulkan surface

I want to use vulkan with SDL2 but I am stuck at the surface creation stage, i cannot use vkCreateWin32SurfaceKHR extension function as well as VkWin32SurfaceCreateInfoKHR extension struct as they are undefined, while i don't have any issues using…
BulBul
  • 1,159
  • 3
  • 24
  • 37
5
votes
2 answers

Is it possible to develop games on Linux with the Unity game engine?

A few months back I was using the Unity game engine to build some games on Windows. Later I had to switch to Linux Mint (due to some reasons). Is it possible to still use Unity on Linux. If not are there any alternatives for Unity where I can build…
NEO
  • 79
  • 1
  • 7
5
votes
6 answers

How to select GPUs for rendering in Unity?

I am using Unity3D for rendering a scene and my machine has multiple GPUs. Could someone let me know how I can select a GPU for rendering? For example, I want to use the second GPU for rendering. Is there anyway to specify a GPU?
airesearch
  • 51
  • 1
  • 1
  • 2
5
votes
2 answers

Add button to Unity3d editor

In Unity3D, I can have a property field appear in the editor by simply adding a public property to the class. Is it possible to add a button next to this field that opens up a file browser that populates that field? I've found…
TryNCode
  • 421
  • 2
  • 5
  • 18