As the size of a game in 3D Rad grows and getting overloaded with lots of objects, we think more and more of reducing the loading time.I noticed some tips in the forum and now I too want to give a tip.
If you use some ValuePrint objects in your game and you can place them one close to another you can replace these ValuePrints with just one TextPrint. Of course, it takes some lines of scripting.
Saving of time: (on my PC)
1 TextPrint loads 7-8 sec.
3 ValuePrints - 14 sec.
4 ValuePrints - 18 sec.
5 ValuePrints - 22 sec. and so on.
If you use some ValuePrint objects in your game and you can place them one close to another you can replace these ValuePrints with just one TextPrint. Of course, it takes some lines of scripting.
Code: [Select]
float timeleft=1200;
//OBJ_0 is the TextPrint we use istead of ValuePrints
void Main()
{
string sp,ang,left;
float speed=IN_22;
float angle=IN_24;
iStringStr(sp,speed,"%.0f");
iStringStr(ang,angle,"%.0f");
iStringStr(left,timeleft/60,"%.0f");
iObjectTextSet(OBJ_0,"Speed: "+sp+"\rAngle: "+ang+"\rTime: "+left);
timeleft--;
}
Saving of time: (on my PC)
1 TextPrint loads 7-8 sec.
3 ValuePrints - 14 sec.
4 ValuePrints - 18 sec.
5 ValuePrints - 22 sec. and so on.