NEED ADVICE] Preloading IFL images of a model.
by Kuju Manila · in Torque Game Engine · 11/22/2007 (12:42 am) · 1 replies
Hi.
I have an slowdown issue on IFLs. In our game, we show some cool 2d pre-rendered effects using IFLs applied on our 3D models acting billboards on screen. However, just the first time these models are instantiated for the first time in the game, the game lags due to loading and caching of the images. So, to counter this effect we did a some sort of hack that onClientEnterGame, we instantiate these models offscreen then deletes it afterwards. But, later in the development of the game, we have an obvious lag seen right at the start of the game (since it is located in onClientEnterGame). Now, we decided to have the models with IFLs instantiated during the loading screens (loading bar part). We added a phase 4 to the missionDownload.cs of both client and server in Common module of Torque. And in that phase, we added a callback to the things we want to preload. But alas, it didn't do any changes.
Any ideas on how do I preload huge and long IFL sequences during loading? You know my problem so any OTHER solution is welcome too.
I have an slowdown issue on IFLs. In our game, we show some cool 2d pre-rendered effects using IFLs applied on our 3D models acting billboards on screen. However, just the first time these models are instantiated for the first time in the game, the game lags due to loading and caching of the images. So, to counter this effect we did a some sort of hack that onClientEnterGame, we instantiate these models offscreen then deletes it afterwards. But, later in the development of the game, we have an obvious lag seen right at the start of the game (since it is located in onClientEnterGame). Now, we decided to have the models with IFLs instantiated during the loading screens (loading bar part). We added a phase 4 to the missionDownload.cs of both client and server in Common module of Torque. And in that phase, we added a callback to the things we want to preload. But alas, it didn't do any changes.
Any ideas on how do I preload huge and long IFL sequences during loading? You know my problem so any OTHER solution is welcome too.
Kuju Manila
Default Studio Name