Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [BUG] ZERO param (0) in any AGK function like GetParticlesMaxReached(0) (my case) incredibly slows down the game!

Author
Message
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 7th Jul 2018 22:28 Edited at: 7th Jul 2018 22:37
This is VERY-VERY old bug in AppGameKit!

ZERO param (0) in any AppGameKit function like GetParticlesMaxReached(0) (my case) incredibly slows down (FPS) the game!

It also was on sprite functions and I think in all of them.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 10th Jul 2018 16:44
0 is an invalid ID, so it is generating an error every time you call it. If you are using SetErrorMode(1), which is the default, then AppGameKit logs the error but continues running. The generation of many errors per frame would slow down your game.

Login to post a reply

Server time is: 2024-11-23 18:14:09
Your offset time is: 2024-11-23 18:14:09