Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,227 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Once again an foolish question :-( #303560
12/29/09 22:35
12/29/09 22:35
Joined: Mar 2007
Posts: 112
MikeS Offline OP
Member
MikeS  Offline OP
Member

Joined: Mar 2007
Posts: 112
Ok, my problem is, the longer my script runs, the slower become my fps.

After clicking 2 times F11, i see the datas inside the engine.

Unter collumn count of: there is an position fnc

Am i right, this position counts the running functions?
and if this number is increasing fast and linear, i have a function, which is called new each frame, and running in loooot of instances?

Greetings

Mike


K, problem solved, it was a function which was called through an while loop.



Last edited by MikeS; 12/31/09 00:01.
Re: Once again an foolish question :-( [Re: MikeS] #303837
01/02/10 18:55
01/02/10 18:55
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
Try putting

proc_kill(4);

at the start of the function which is the problem.

Re: Once again an foolish question :-( [Re: JazzDude] #303840
01/02/10 19:43
01/02/10 19:43
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
Chances are, you have a function running a loop that is calling other functions that also have loops in them, and the functions are piling up and not ending.

Make sure that you aren't using more loops than you need. I used to have this problem, too.


Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: Once again an foolish question :-( [Re: Redeemer] #303843
01/02/10 20:33
01/02/10 20:33
Joined: Mar 2009
Posts: 40
DR_Black Offline
Newbie
DR_Black  Offline
Newbie

Joined: Mar 2009
Posts: 40
As Redeemer said , It seems you have a function that contains an endless loop and you call this function in another (endless) loop.
Check all loops in your code and when you find bad one you can either delete it or use proc_kill(4); (thanks to JazzDude)


every body got some dues in life to pay

Moderated by  HeelX, rvL_eXile 

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