Questions tagged [data-structure]
An entity for organizing data in a specific way so it can be used efficiently. Examples are arrays, objects, records, structs.
                311 questions
            
            
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                34
            
            views
        
        
            
            
        Can a single large SSBO in vulkan store different types of structs?
                    I was using tinkering with vulkan and was wondering if a SSBO can store a mix of structs of different kind like shown in picture and pass offsets of the said structs to access them in shader.
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                130
            
            views
        
        
            
        What is the preferred memory to store game object into, Stack memory or Heap memory
                    In the context of game dev, what is the preferred memory to use to store structs like Entities or MapData which are large in size and have lifetimes lasting the entire game run-time.
For example here ...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                67
            
            views
        
        
            
        Best Approach for Storing / Serializing Property Value Animations
                    Background
I'm making a platformer game, in C#, in Monogame. I've got a middling amount of experience with gamedev, having done some mini projects in Unity in the past and deciding I don't like a big ...
                
            
       
        
            
                2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                154
            
            views
        
        
            
            
        Fastest way to store colored rect info?
                    I'm using WebGPU and a storage buffer for rects. Currently I have this:
...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                93
            
            views
        
        
            
        For an isometric adventure game, what is a good way to store the objects in 3D?
                    I'm creating a game in C++ and raylib. This is a real-time isometric game, so it is technically 2D graphics, but the rooms have a 3D structure because there will be many blocks and other objects that ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                59
            
            views
        
        
            
        What are some different ways that tiles are stored in a game during runtime
                    I am making a 2d rpg game that uses tiles to store the terrain data. Also the map is procedural generated infinite world type.
I saw an approach called clipmaps to ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                447
            
            views
        
        
            
            
        How can I make an Amiibo from an NFC card?
                    For Christmas, I got an NFC reader/writer for my PC, and about a dozen NTAG215 tags. I found this Amiibo Database on GitHub, but I found out the NFC files alone aren't enough for my New Nintendo 3DS ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                120
            
            views
        
        
            
            
            
        How to author data for spawning enemies in waves?
                    I'm ready to start working on a prototype of a 2D game. My game has a few phases it cycles through, two of them being a gathering/crafting phase, then a defending phase. In the defending phase, you ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                767
            
            views
        
        
            
        What data structure would be the most efficient for a task scheduler?
                    So in a game with various objects that perform various tasks, a naive approach would simply be to update the state of all of the existing items in the world every game update. This is what Minecraft ...
                
            
       
        
            
                3
            
            votes
        
        
            
                1
            
            answer
        
        
            
                859
            
            views
        
        
            
            
            
        How to store condition dependent item information in JSON
                    I'm developing a RPG-game. After searching about various ways to save item information in RPG-game, I determined to save information in JSON files. The problem is that in my game, some equipment's ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                185
            
            views
        
        
            
            
        Where to put data/values of Status Effects... in Status effect object or just reference from Ability source?
                    for turn based game, units can get buffed/debuffed with status effects, like poison, etc. I would like to ask the advisable place where to put amount of poison in the data structure. I can think of ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                215
            
            views
        
        
            
        Separating Game code and Engine code
                    I've decided to take on a challenge of making 16 c++ games based on this challenge from FamTrinli, I'm using SDL + OpenGL. I've created a simple 2D game in the past, but I didn't like the code ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                276
            
            views
        
        
            
            
        How can I handle voxels that require extra data in my octree?
                    I am using octrees as an efficient way to store voxel data in a voxel game. The details of my octree implementation can be found here, but in a nutshell, each node is 16 bits, and the most significant ...
                
            
       
        
            
                3
            
            votes
        
        
            
                2
            
            answers
        
        
            
                2k
            
            views
        
        
            
        What is the recommended way of storing large sets of organized, immutable data in Unity?
                    Since I'm making an RPG in Unity, I need a place to store all the possible moves/attacks in the game. These have the following properties:
there will be a very large number of them, in the hundreds ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                137
            
            views
        
        
            
            
            
        How to add a slot to processing queue using a ring buffer with three pointers?
                    I am working on a farm game made in C. I am currently working on adding item processing, such as milling wheat into flour. Under the hood, I am using a ring buffer to handle the queues for processing. ...
                
            
       
         
         
         
        