Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [loading]

Generally getting assets off disk and into memory.

0
votes
2answers
123 views

Google street view racing game?

How would one create a map for gaming using Google street view? Are there any programs for doing this? The cars, people and objects could be edited out and replaced with digital copies if the same ...
0
votes
0answers
18 views

Best way to update a file to a server from Unity?

I am new to Unity but was wanting to amp up my knowledge. I am creating some scouting software for my robotics team and they want to have the program to connect to a server and with the click of a ...
0
votes
0answers
29 views

Godot: 'is_on_floor' problem

I have a character in a basic platformer game and am having trouble. Whenever my character stands over two tiles on a tilemap and appears to be directly colliding with them the character's ...
1
vote
0answers
159 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 ...
0
votes
1answer
47 views

Why can't I load images in processing.js and let them be dynamic?

I can't easily load images. I can only render an image once unless I put this: <img src="images/papermario.png" hidden></img> in my html. I also still ...
2
votes
1answer
24 views

How can I display a loading state until a song loaded with www.GetAudioClip() is ready to play?

I use www.GetAudioClip() to get a song and play it when my Android mobile game starts. My issue is that it takes a 3-second delay to play the song. My idea is to ...
0
votes
1answer
14 views

Importing audiofile into Unity3d gets shown after ending playmode

I am working on a game where the user has the possibility to import custom audio tracks that can be listened to during the game. For this I am making use of System.IO.File.Copy method. This works, ...
1
vote
0answers
35 views

Load Unity game launch options from file

I have a need to disable the resolution dialogue when the game launches, but have a config file that will have all of the dialogue options (resolution, quality, monitor (monitor is most important, ...
0
votes
0answers
22 views

Algorithm for tile loading order

I'm working on an Android app (you could call it a "game") that loads meshes (= kind of tiles) depending on your line of sight. Basically I'm generating the ground in a void world in which you are a ...
0
votes
0answers
25 views

Unity. How to make game loading and saving?

I'm working on a game in which I'll need to save tons of objects, and this is no problem already done that. But when I load objects back to scene unity throws a book of errors at me. I'm using ...
0
votes
2answers
169 views

Loading sprite resources from nested folders

This is how I try to load my sprite images: ...
0
votes
1answer
256 views

DDS load texture and cubemaps

I'm trying to render a skybox with a cubemap on it and to do so I'm using DDS Texture Loader from DirectXTex library. I use texassemble to generate the cubemap (texture array of 6 textures) into a DDS ...
1
vote
1answer
113 views

Preloading for level transitions in a tile-based game?

I am developing a 2D Metroidvania which consists of a series of interconnected levels. When my player gets near a portal which can take him to a new map, I want to pre-load the next map so that there ...
0
votes
1answer
121 views

How can i load a level in my gameengine wich is larger than 2GB? C#

i were asking myself how could i load a large Level? My gameengine is written in C# and is rendering with Direct3D11. I just have my class called "Scenery" and the class is able to store all objects ...
7
votes
6answers
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 ...
1
vote
0answers
220 views

Why are my cached (in an array) gameobjects disappearing?

First, some context: I am developing a chunk loading system for unity. I load all the chunks as prefabs from disk to an array as a cache. When I need to load a chunk, I instantiate it from the cache ...
0
votes
2answers
722 views

Problem when reloading unity scene(level)

I am using SceneManager.LoadScene(SceneManager.GetActiveScene().name); to reload my current scene in unity , but when i run the game ,in hierarchy lots of scene ...
2
votes
1answer
137 views

What is the most efficient method to load 2D dynamic chunks?

Information/context I'm writing a 2D sandbox game - similar to Terraria. The world is made up of many chunks, in a variable like this: vector<Chunk> chunks; ...
1
vote
0answers
95 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. ...
1
vote
2answers
611 views

Unity: SpritePacker Atlas with Dynamic Access

Here are current conditions for a game I'm building in Unity 5.6.3: SpritePacker is used to create atlases (it would be ideal if that didn't change, but it could, if no other options become evident). ...
1
vote
0answers
106 views

Loading a TMX file with Java [duplicate]

I use the program Tiled to create tile maps, which export to the TMX format. However, I can't find a way to load them into my LWJGL game. I don't want anything that renders them automatically, I want ...
1
vote
2answers
63 views

Loading scene doesn't reactivate gameobjects

I have some levels and a main menu. When starting the game from the main menu (in the editor debug mode) I can select a level a load it, no problem. However, when I wish to go back to the main menu ...
1
vote
4answers
255 views

Can a loading screen be implemented using one thread only? If so, how?

I have seen guides on how to implement a loading screen using more than one thread. But sure it must be possible to do so with one thread, since older (even 2D) games that run on single-threaded ...
0
votes
1answer
63 views

Loading settings files better?

I have recently been working on a small game project and decided to implement settings loading at game startup. The problem is that my method seems to be too hard coded and not scalable without having ...
1
vote
0answers
358 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
0answers
100 views

Thread speeds up in XNA when window is minimized

I think that´s a simple question for some of you. My XNA game has a main thread and another thread when the game is started (to be able to update and draw game components while textures and game data ...
0
votes
0answers
27 views

Do GameObjects still get updated when playing a Unity Ad?

When you play a Unity add on android/IOS the entire screen is taken up playing a video the only thing the player can do is watch the video, click on it or close the ad at the end. While this is ...
6
votes
2answers
464 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
1answer
551 views

How is text/scripts/dialogue stored and accessed in games?

For large, complex games, I imagine that text descriptions, dialogue lines, etc, are organized in some sort of database, and not actually hardcoded into the source. Are there any conventions on how ...
8
votes
3answers
3k 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 ...
13
votes
2answers
18k 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
2answers
60 views

Why does Unity allow me to use GameObjects created from non-existent prefabs?

I have code similar to the following in a Unity project. I was trying to shoot a projectile when spacebar was hit, but a projectile wasn't appearing. I found out the problem was caused because I moved ...
0
votes
0answers
49 views

Two game object efficient and fast on-off switch

I have two game-object, on GUI button click i am toggle between them but the problem is one game-object which is small contains less vertx etc., is loading fast while the other which heavy taking time....
2
votes
2answers
5k views

Quickly Converting RenderTexture to Texture2D in Unity3D

I have a screenshot preview at the end of the game's level. When I am loading the screenshot, it makes the game freeze for a moment. What may I do so there would be no freeze when I am loading that ...
23
votes
8answers
8k views

Couldn't all games avoid post-start loading?

Just like 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 ...
27
votes
3answers
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 ...
1
vote
1answer
2k views

How to load sprite from JSON?

i know how to load text, but idk how to load texture from json.. this my c#: ...
1
vote
2answers
7k views

Is async image loading possible?

Can anyone tell me if there is a async version of LoadImage() method? I found about Resources.LoadAsync, however the method doesnt work. Thank you
0
votes
1answer
164 views

SFML dynamically loading images

So I'm screwing around with c++ and SFML, when I thought to myself the following: If the images are compiled into the executable, with enough sprites for the game, memory might become a problem at ...
7
votes
3answers
24k 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 ...
2
votes
1answer
332 views

In Unity, how can I register a custom file type that is always opened with my game?

I want my players to be able to create their own scenes as custom levels, save them as files (say custom1.gamelevel), and open them directly in my game program by ...
3
votes
2answers
254 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 ...
0
votes
1answer
56 views

OpenGL Mapped Memory Shader Source

Is there any way to get a pointer to a newly created shader object's source? I'd like to load a shader directly from file in to my shader object instead of loading to an intermediary variable and then ...
1
vote
1answer
1k views

Unity3d seamless level loading

I've read that application.loadLeveAdditiveAsync is a pro only feature. I'm looking for an asset that can do something similar. I would like to load assets based on the camera/player position. Ideally,...
1
vote
4answers
356 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 ...
1
vote
0answers
528 views

How heavy is a scene load in Unity assuming all referenced objects are in memory?

From what I understand, resources that are local to a particular scene( not a prefab, or texture, material asset etc ) are embedded in the scene file itself, while external resources are just ...
1
vote
3answers
2k views

Saving/Loading PlayerPrefs only works in the editor

I'm creating a game which stores a few variables using PlayerPrefs. It saves and loads the PlayerPrefs perfectly fine while testing in the editor, however when I build it to WebGL or Unity Web Player, ...
0
votes
2answers
1k views

C++ Saving and Loading From Text File

In my C++ program I am trying to develop a simple saving and loading function for my game. I can easily get the save function on it, but the loading part of it really stumps me. What I need is to ...
8
votes
5answers
1k 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 ...
2
votes
0answers
893 views

Cannot convert bitmap to texture [closed]

I'm doing a little C# / OpenGL project and I can't manage to load textures properly. So here is my texture class : ...