Skip to main content

Questions tagged [loading]

Generally getting assets off disk and into memory.

Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

Why does AsyncOperation.allowSceneActivation=false NOT stop my scene from loading?

I am trying to halt my level scenes from fully loading until I press a button to start the level but for some odd reason when I call LoadSceneAsync on my Additive ...
1 vote
1 answer
476 views

Loading WAV and MP3 files with LWJGL 3?

Whenever I research audio in LWJGL 3, they always use STB which can only load Ogg files. All of my audio files are in either WAV or MP3 format, and it would be annoying to have to convert all of them. ...
0 votes
2 answers
144 views

How to prevent the "_ready" events and pre-ready var declarations in a loaded, instantiated scene?

I have a simple save game/load game system that packs the entire world scene to the disk, then loads it via ResourceLoader.load(): ...
0 votes
0 answers
55 views

How many players dropping off while loading a mobile game is considered normal?

What percentage of players who do not wait for the full launch of a mobile game can I consider acceptable as a developer? Could you recommend research and/or articles on this topic? I am interested in ...
1 vote
1 answer
31 views

Failure on DX11Texturesavetofile for B5G6R5_UNORM format

I have a protocol to prepare with a combining shader a texture from two other textures and saving it in RGBA8_UNORM DDS format using DX11SaveTextureToFile. Works fine. It appears to me that I don't ...
1 vote
0 answers
106 views

How does the Asynchronous Upload Pipeline actually work?

Unity has an Asynchronous Upload Pipeline which can upload qualifying textures and meshes to the GPU asynchronously over several frames, rather than uploading in one frame and stalling the main thread....
0 votes
1 answer
352 views

Instantiate prefabs at particular vectors using text file

I need to read a text file containing two pieces of information on each line, and use that information to instantiate a prefab at the correct location in a Unity game (using a C# script). The ...
0 votes
1 answer
118 views

How to setup a loading screen using SDL_Threads?

I am trying to set up a basic toy example of how a loading screen would work in SDL. Here is my code below. ...
0 votes
1 answer
144 views

Minecraft-like simulation optimization

I am working on a voxel game similar to Minecraft. The goal would be to handle more entities but also offer a more immersive experience by the fact that the player does not need to worry about loading ...
0 votes
2 answers
130 views

How to remove loading delay when loading from Appdata? Or to load everything at start?

Currently, when loading from Appdata, there is a noticeable delay. See a sample video here, when it changes from the sprite set in UI to the sprite loaded from Appdata through C# script. I want to ...
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 ...
0 votes
0 answers
95 views

How to load asset from zip file?

How can I load an asset (model, texture, etc.) from a .zip file in Python's Ursina module without extracting it? I tested this code: ...
0 votes
0 answers
53 views

Only first line/column of level text file gets loaded into tile map

I'm trying to make a map using a text file, but it only does the first line / column and not the rest. I know the problem is in getTileImage. ...
2 votes
3 answers
6k views

Add Existing Animation

I have several animations that I am using on a GameObject. I switched the folder they were stored in, and they got detached from the gameObject. How can I add the existing animations to my ...
2 votes
1 answer
4k views

Creating a real loading screen between levels in Unreal Engine 4

I'm trying to create a loading screen to pop up between levels in Unreal Engine 4. I want to have a traditional loading screen such as the loading screen in Skyrim, where the player presses play and ...
18 votes
3 answers
34k 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: ...
0 votes
1 answer
3k views

Reduce Unity Editor loading times

Open project => Wait Start / stop game => Wait Change script => Wait Move object from project view => Wait You blink too often => WAIT even more ! And so on and so on.... And the ...
0 votes
1 answer
139 views

Storing achievement code logic in JSON vs in source-code

I am creating an achievement system for my game engine. I represent an achievement as a class takes a predicate function to determine if requirement for unlock has been met. ...
1 vote
0 answers
663 views

Scene loading finishes (90%) in 1 frame, but isn't isDone until 3 frames later

I am loading scenes async using addressables like so ...
1 vote
2 answers
90 views

Loading game state before first save has occurred (chicken/egg problem)

I've learned that storing and loading game saves is commonly done by serializing runtime data into binary files and then loading in those binary files de-serialized to reconstruct the runtime state ...
0 votes
1 answer
30 views

Load in all NPC asset dependencies at once, or Just In Time during their construction?

I have an NPC class with a DialogueTree object as a field. DialogueTree objects are ...
0 votes
1 answer
92 views

When are the resources used by a prefab loaded?

For example, I have a scene. The scene has a GameObject. The GameObject has reference to a prefab, like this: ...
0 votes
1 answer
50 views

'Partial data load' terminology

I am writing up my work and I'm trying to think of a word, or phrase, that better describes a 'partial load' of data. In my case, I have one very large file that is "environment A". To ...
2 votes
1 answer
1k views

Animate Loading Screen During CPU-Heavy Scene Load

I have a scene with lots of lightweight objects and one that takes anywhere between 10 and 45 seconds to load. At a high level, the Awake method does... Query database For each result do some (fairly ...
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 ...
0 votes
1 answer
585 views

How do game loading screens work?

I have successfully developed a 2D game. I display sequential introduction images then load the start screen after that of course I load the game level in a single thread, it is a basic functional ...
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: ...
2 votes
1 answer
696 views

How to load level 1 when the cutscene ends?

I use timeline for creating an opening cutscene and I want to load the first level after the cutscene ends. So, I decided to use timeline signals. I created a signal emitter at the end of the cutscene ...
0 votes
1 answer
813 views

How to clear Resources.Load cache?

I am loading my assets and tile information through YAML files. While working on the game, I needed to quickly change some values and test them in-game, and I realized I could just re-load the YAML ...
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 ...
0 votes
1 answer
1k views

How to load a DDS file with mipmaps

I believe there's a D3DX function that can load a DDS file with mipmaps but D3DX is ...
1 vote
2 answers
2k views

Is it better to load all of the scene at once or load small parts of it as the player moves?

I want to create a lot of detail in my game but I don’t want to kill the frame rate tracking all the models and movements (like all the grass). Will loading them in pieces save the frame rate or will ...
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 ...
1 vote
1 answer
56 views

How do I refer to the two types of loading screen?

I'm troubleshooting some issues beyond the scope of this forum, and I'd like to be able to talk about certain parts of the gaming experience, specifically the two types of loading screen I see in Prey....
2 votes
0 answers
1k views

How to load parts of a large tilemap like chunks in Unity 2d?

I use more pictures so you can understand my opinion better. Here is the video link I recorded. My code has a problem that I use for to render it and cause it to "lag" for 1-5 seconds, so I ...
1 vote
0 answers
786 views

How do I correctly unload an additive Scene in WebGL?

I am creating an app in WebGL. I have a loading scene that I am loading additively: SceneManager.LoadScene("Loading Scene", LoadSceneMode.Additive); It loads ...
0 votes
2 answers
228 views

Switching between world and battle scene with no or minimum loading?

I am making a strategy game where the player roams a grid map. When the player encounter enemy on the map he is transferred to a "battle" scene where two armies are fighting in turn based ...
0 votes
1 answer
376 views

How to pass an argument with ref keyword to a local funtion/ how to work around it?

Unity 2019.3 I am writing a few extension methods to make my life a little bit easier, but this one is bogging me down. I am loading stuff with Unity's Addressable system, and I would like use it by ...
0 votes
0 answers
59 views

Is using sprite sheets and drawing specific part the way to go?

I'm programming in Java. I have more than 200 MB of images used in my games, something like 100000 40x40ish images. I initially wanted to load them all during app initialization but it took like 2 ...
1 vote
0 answers
63 views

What is the better form of movement for a vehicle that the player is inside of?

I am using unreal engine 4 to make this. Basically I have a submarine that the player can move around in and can control the submarines movement within an ocean. However I don't know the best way to ...
0 votes
1 answer
312 views

What is the most efficient way to load all the textures?

I am developing a game (in Java) that is going to have a lot of textures and images in it. What is the most efficient way to load all the textures? I was thinking on pre-loading all the images ...
0 votes
0 answers
122 views

Why don't games load assets while showing main menu?

Most single player computer games have rather frustrating pattern of loading: start game Game shows you some logo videos Game indicates it is loading (general assets are loading, that are always used)...
-1 votes
1 answer
670 views

Unity3D FindGameObjectsWithTag not recognizing any tags

I'm at a loss here because I'm not sure what's going on. I understand that tags need to exist first, and that you actually have to assign the tags after creating them, but ...
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 ...
0 votes
0 answers
51 views

Switching between meshes vs Loading only specific mesh

I am currently developing an online multiplayer game on Unity. In the game, the character of each player will be assigned its mesh after the game receives parameters (their meshes' names) for each ...
3 votes
2 answers
4k views

Load scene without being in build settings and without using AssetBundle

This is the closest I've gotten: ...
1 vote
1 answer
773 views

Loading a heavy scene behind some loading screen in unity

Is there a way to load a heavy built scene behind a loading screen in unity to not make the game look like stuck loading the scene rather show the player some loading bar that would help the player ...
1 vote
2 answers
1k views

How can I implement versioning into a save system?

I currently have a crude save system in my game. When my game is first launched after download, it checks for three directories in a certain location on the client computer, ...
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 ...
0 votes
1 answer
1k views

Why it isn't possible to get a progress in SceneManager.LoadSceneAsync between 0.0 and 0.9?

I am trying to understand why does SceneManager.LoadSceneAsync progress always jumps from 0.0 to 0.9, no matter how big a scene can be. To try trigger smoother ...