Questions tagged [loading]
Generally getting assets off disk and into memory.
173
questions
34
votes
2
answers
3k
views
How does a game without loading times work?
We're talking about an expansive game that is not divided in levels or checkpoints. A 3D adventure, for example.
26
votes
3
answers
4k
views
For a custom game engines, what should I do if my core data is malformed or missing?
I'm writing a custom engine for a game. I started this game well before I understood why I should use middleware, instead, and it's too far along to rewrite.
The vast majority of my data comes from ...
25
votes
8
answers
10k
views
Couldn't all games avoid post-start loading?
Just as giant open world games load massive maps dynamically, couldn't we load separate maps, menus, and virtually any interface or 3D setting via that same dynamic loading method? Without changing ...
19
votes
8
answers
8k
views
What all should be happening during the "Loading" screen?
Do I just need to be creating instances of all of my graphics into memory that are loaded from file? What is the best way to handle this? Do I just need some sort of assets manager that creates ...
18
votes
4
answers
4k
views
How can I efficiently load huge volumes of star systems?
I am working on a space exploration and combat game, and I can create galaxies, nebulas, solar systems, and load and unload them procedurally as needed. Meaning the stars that the player can see are ...
18
votes
3
answers
8k
views
In XNA, how do I dynamically load parts of a large 2D world map?
I want to develop a huge world map; at least 8000×6000 pixels in size. I have broken it into a 10×10 grid of 800×600-pixel PNG images. To avoid loading everything into memory, the images should be ...
17
votes
3
answers
33k
views
Smooth loading screen between scenes
I created a loading screen to display a loading animation as the next scene is loading. I load the next scene asynchronously with:
...
17
votes
4
answers
9k
views
How can I write a Save/Load system for my game?
I'm trying to figure out a way to write a save/load system for my game in C++. As of right now, I'm doing it all using binary flags. Anyone got a clue on how to do it another way? I don't mind using ...
11
votes
3
answers
3k
views
Why do prefabs speed up loading?
I have a scene with a massive terrain. It took a long time to load (approximately 60 seconds) when I pressed play. I am in the editor.
I prefabbed it.
Now it only took about 5 seconds to load when ...
10
votes
3
answers
6k
views
Can I run my own loading script during the Unity splash screen?
Can I load data in the background while the Unity splash screen is up? If so, how?
I am trying to run code during the splash screen, not just load assets.
I have not been able to find any ...
9
votes
6
answers
13k
views
Library to load images into textures, Linux, C and OpenGl
I am looking for simple, self-contained C library for Linux to load images from files into OpenGL textures. The licence should be quite liberal: zlib, bsd, mit or something. I have found SOIL, however ...
9
votes
2
answers
10k
views
How do I load textures with SFML for OpenGL?
I'm looking at NeHe's texture mapping tutorial. It looks overly complicated for just loading a texture.
Is there a way to load a texture in SFML and then use it in Open GL? I use SFML for my ...
9
votes
3
answers
575
views
Pre game loading time vs. in game loading time
I'm developing a game in which a random maze is included.
There are some AI creatures, lurking the maze. And I want them to go in some path according to the mazes shape.
Now there are two ...
9
votes
1
answer
1k
views
C++ Model loading API?
I'm looking for the most capable C++ model loading API.
So far I've found tons of ply, obj, and other such file format loaders. But the libraries I've found tend to load just one model type, and ...
9
votes
6
answers
2k
views
Why can't I read .ttf file when running Android configuration?
When running or debugging my game on Android device, I get this error in the logcat:
com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: data/fonts/myFont.ttf (Internal)
Which is ...
8
votes
5
answers
12k
views
What is the logic behind the 'Loading' scenes in games?
I'm making my first game, it's a tower defense type of game, using Unity game engine and taking Fieldrunners as a reference. I would like to know more about the functionality behind 'Loading' scenes ...
7
votes
6
answers
4k
views
How can I speed up slow loading of big levels?
I created a level loader that loads levels saved in an XML format. This means I am using an XML parser to read the levels. It works, but slightly bigger levels take too long to load. So now I am ...
7
votes
2
answers
9k
views
Purpose of Displaying Loading Screen
Is it necessary for a game developer (on Android, game consoles, online, or desktop) to display the loading screen to cover unfinished rendered game environments and prevent users from thinking that ...
7
votes
1
answer
6k
views
Are there any open source Source engine VTX/VVD viewers?
I've been playing with loading and displaying Source Engine models (TF2, specifically) and have had mild success, but there are some aspects of it that are eluding me still. I've been primarily ...
6
votes
3
answers
5k
views
When should a bullet texture be loaded in XNA?
I'm making a SpaceWar!-esque game using XNA. I want to limit my ships to 5 active bullets at any time. I have a Bullet DrawableGameComponent and a Ship ...
6
votes
3
answers
38k
views
My game crashed... Access Violation (0xc0000005)
I guess this is the first official crash I've had in Unity (that is not just an infinite loop.) The game works just fine in the editor but when build and run it, the game won't even start.
I just ...
6
votes
2
answers
2k
views
How do I prevent getting an access denied loading a file in XNA, when I have the application running in the program files directory (in Windows 7)?
I'm creating an app in XNA.
I'm trying to load a custom save file. I named the file with my own custom extension. It's an XML file serialized with the DataContractSerializer.
I've tried several ...
6
votes
1
answer
508
views
What is the general strategy to pre-load game data(entities/map)
I'm new to games programming and am wondering what tactics games use to pre-load entity and map data. Will a game initialise with the fundamental map data stored in memory?
6
votes
2
answers
831
views
How do I load chunks of data from an assest manager during a loading screen?
I'm developing an Android game. Basically I want to pre-load all graphics/sounds when the app is first loaded. But I also would like to show a progress bar as this is happening. Here is a snippet ...
6
votes
1
answer
449
views
Can SFML load anything other than RGBA8888? (RGBA4444, RGB565, etc.)
I can't see this mentioned in the documentation. Am I missing something obvious? Or does SFML really give you no option, forcing everything to be loaded as RGBA8888?
Searches on Google and the SFML ...
5
votes
2
answers
150
views
File caching on the PC
Is it a good move to disable windows' file-caching capabilities (via I/O completion ports) for resource loading in a game environment? Most games will do their own resource management and caching ...
5
votes
1
answer
1k
views
"exception at 0x53C227FF (msvcr110d.dll)" with SOIL library
I'm creating a game in C++ using OpenGL, and decided to go with the SOIL library for image loading, as I have used it in the past to great effect. The problem is, in my newest game, trying to load an ...
5
votes
1
answer
7k
views
Using the AssetManager in LibGDX
I am trying to use the AssetManager class in LibGDX and I understand how it works but I am trying to implement a loading screen. I have followed the ...
5
votes
2
answers
302
views
Switching between levels, re-initialize existing structure or create new one?
This is something I've been wondering for quite a while.
When building games that exist out of multiple levels (platformers, shmups etc) what is the prefered method to switch between the levels?
Let'...
5
votes
1
answer
391
views
Loading content (meshes, textures, sounds) in the background
In my game, I am aiming for a continuous world, that is, a world where you can go anywhere without breaking the immersion through load times and "virtual seams".
My world is broken up into regions, ...
5
votes
3
answers
1k
views
Zelda LttP (Super Nintendo) room changes?
I'm trying to make a tile-world adventure game on iOS similar to Zelda Link to the Past on SNES, and one issue I've run into is having my camera move beyond walls revealing the rooms on the other side....
4
votes
3
answers
3k
views
Saving instances of classes, then recreating the instances [closed]
I have many types of entities, each type has a lot of if instanceof Spider (for example ) then do this in the game code... Now I got to the part where I want to ...
4
votes
2
answers
4k
views
rpg 3d open world map & entity loading-streaming
Hello I'm a web developer and recently I started reading about game development.
I followed some tutorials regarding c++ and openGL (whatever I could find online because as you know not many up to ...
4
votes
2
answers
854
views
What is the Basic Game Screen/Scene Life Cycle?
Question
What is the standard or basic game screen/scene life cycle used in most games?
What is Screen/Scene?
The term screen or scene refers to the current displayed entity holder where game ...
4
votes
2
answers
3k
views
How to convert Resources.LoadAll to Addressables?
I have been advised to move away from the Resources system to the new Addressables system, which seems to have many advantages.
I need to convert the following code to use the Addressables:
...
3
votes
2
answers
682
views
XNA: My bullets lag the game the first time they're fired, but not after
I'm working on a SpaceWar-esque project to get comfortable with XNA. I have a Ship DrawableGameComponent and a Bullet DrawableGameComponent. The player's Ship is created at the start of the game, and ...
3
votes
1
answer
878
views
Clever way to do the Sonic 2 Bonus Stage effect saving memory
What would be a good way to save memory to achieve an effect like this one?
http://www.youtube.com/watch?v=K89LkvL9JZ0
We're using pre-rendered 3D.
I'm asking this because this naive approach of ...
3
votes
3
answers
4k
views
OpenGL and 3ds model loading: Path of least resistance?
Hey guys, im working on a final class project for a graphics class, and me and a teammate are making a simple 3d tower defense game.
We're currently planning on using 3ds models and drawing them ...
3
votes
1
answer
3k
views
(Phaser) Preload Future States in Create?
I'm a first time user of Phaser, been trying to make a simple point and click type game. I'm trying to keep things very modular, so I'm defining a list of levels (states) in a JSON, and then every ...
3
votes
4
answers
2k
views
Why does using multithreading during my load screen increase my load times? [closed]
OK, I added a loading screen to my game, and in order for the game able to update and show a loading screen and load stuff in the background I came to the concludsion that I needed to host the loading ...
3
votes
5
answers
5k
views
Xna Loading Screens
I'm making a 2D XNA game. I'd like to implement loading screens when stuff has to load for a while. Like when I login to an account, connect to the server, and generate worlds. I'm pretty sure it ...
3
votes
1
answer
5k
views
Using NinePatch in libGDX for Loading Bar
I am trying to create images for a loading bar in libGDX. I came across the NinePatch class and I was hoping to use it for this loading bar, since stretching images ...
3
votes
2
answers
2k
views
Implementing multithreaded loading screens
Ok, I have fairly little multi-threading experience, but i have done a similar thing before without issue...but this has me stumped.
This is in C++, Directx9 Visual Studio...
My game basically runs ...
3
votes
2
answers
4k
views
Load scene without being in build settings and without using AssetBundle
This is the closest I've gotten:
...
3
votes
4
answers
1k
views
How to load and unload objects at a certain radius from the player?
I am making a procedurally generated space exploration game in unity. I'm currently generating 5000 stars in a cube of a fixed size. Each star just gets a random 3d coordinate. What I would like to do ...
3
votes
3
answers
8k
views
In Unity, can I load a local (/Resources folder) website to safari on an ipad
In Unity, can I load a local (/Resources folder) website to safari on an ipad?
This works fine on a Mac, opening up a wepage from my Resources folder.
...
3
votes
2
answers
3k
views
Simple Android loading screen when using OpenGL
My game uses openGL ES 2.0 on Android and it's got to the point where the pause (while loading resources) has become noticeable.
All I'm after is to show a static screen (probably via an XML layout ...
3
votes
1
answer
1k
views
How to load data for specific level at runtime?
I'm trying to create a game with many levels loaded from XML files. In my game I have many objects in each level.
At present my game contains 20 levels, and I load all the textures at once on startup....
3
votes
3
answers
2k
views
Directory paths for resources and assets
If I have a file stucture for my final, released game something like:
Main folder
Media
Images
Other assets
Sounds
Executable
List item
And a different one for my 'in development' project, with ...
3
votes
2
answers
1k
views
How can I access bitmaps created in another activity?
I am currently loading my game bitmaps when the user presses 'start' in my animated splash screen activity (the first / launch activity) and the app progresses from my this activity to the main game ...