Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Script size question #281938
07/29/09 15:14
07/29/09 15:14
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Okay, i lost a day, but i get this.

So, i have a huge project, last month i worked only with mathematica (angles of players, corrections, etc), and i was really dissapointed with the falling of FPS and memory size.
1) I commented 99% of code: includes, startup and so on.
When i run nearly empty script, i got 2 functions running, empty screen and 400+ fps.
2) I uncommented and optimized some INCLUDE files, so the summary size of scripts increased... i got still 2 functions running, empty screen and 280 fps.
And its not the end.

Why this happens? Why FPS depends on number of strings, but not on number of running functions?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Script size question [Re: VeT] #281947
07/29/09 16:11
07/29/09 16:11
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
The frame rate of a game depends on the content, but not on the physical size or length of its scripts.

With outcommenting code, you can locate which part of your include scripts causes an fps problem. It should then not be difficult to find and fix the problem.


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1