GLBasic forum

Main forum => GLBasic - en => Topic started by: codegit on 2009-Oct-13

Title: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-13
Hi

I have experienced a serious slow down of my game since GLBASIC version 7.138. Has anybody else had this problem??? O_O
Title: Re: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-13
I restored a backup of my game  from 2 weeks prior and then recompiled with the new compiler and there is definitely a huge slowdown for me. HAs anybody else noticed this problem.

P.S. I am only using 2d graphics with drawsprite and drawanim.... :|
Title: Re: iPhone slow down since version 7.138
Post by: Uncle on 2009-Oct-13
Yeah I noticed a slow down, but wasn't sure if it was version related.  Perhaps you could measure the times it takes to process one loop of your program, and then run it in both version of GLB.  That should confirm it one way or the other.  Is it possible to still download older version of GLB?
Title: Re: iPhone slow down since version 7.138
Post by: Moru on 2009-Oct-13
The updating program makes backups of the old installation every time you update GLB, look in the folder.
Title: Re: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-14
I have run extensive test with this version compared to an older version I have on my other laptop. There was a major degrade in performance in the new version of GLBASIC. Maybe Kitty already knows about the problem??? I know that some work was done to improve 2d performance, is this maybe what caused the slow down with the iPhone version??  :whistle:
Title: Re: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-14
Quote from: Moru on 2009-Oct-13
The updating program makes backups of the old installation every time you update GLB, look in the folder.

Unfortunately, I did not tick the option to allow backups.  :-[  Kitty is there a way I can go back to version 7.115 which runs fine for me?
Title: Re: iPhone slow down since version 7.138
Post by: MrTAToad on 2009-Oct-14
Are you using debug or release mode for everything ?
Title: Re: iPhone slow down since version 7.138
Post by: Kitty Hello on 2009-Oct-14
In release mode it should not be slower. If it really is, please post the 2 closest version numbers that show the difference.
Title: Re: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-14
I think the difference happens between 7.115 (fast) to 7.142(slow)  (i am not sure about 7.138 as I never tested this one)

Also, I am using release mode....   ;)
Title: Re: iPhone slow down since version 7.138
Post by: Kitty Hello on 2009-Oct-14
Yikes!
Are you using polyvector a lot, or just the plain drawings?
Title: Re: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-14
I use just the plain drawing commands. I loaded back a project from two weeks ago which ran well, recompile with new version of GLBASIC and it slows down alot. Almost a third frame late loss. Maybe it is me, but I cannot see anything that would cause this. Also, all my sprites are in .PNG format with transparent layer.

I am very keen to know if anybody else is having this problem. Maybe the problem is internal to my hardware (iTouch) and nothing to do with GLBASIC?
Title: Re: iPhone slow down since version 7.138
Post by: Kitty Hello on 2009-Oct-15
But you can confirm it was faster with the old compiler version?
Title: Re: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-15
No I cannot confirm that it was faster. But I took an old version of code that I had saved away two weeks prior and then recompiled with new version and it ran sloooow. Yet I know that version ran fast previous. So I know that the new compiler is making things slower. I am quite certain.

I will also investigate on my side and see if I can find which specific command is causing the slow down. This is why I beleive that I cannot be the only one having this problem. Maybe because I just use the standard drawing commands????

I am going to rewrite all my routines with polyvector and function pointers, but I have come too far on this project to change. If I can get back to prior version of GLBASIC I will be happy. Also, I promise that in future I will setup a test bed for new rtelease before going into my "live" environment.
Title: Re: iPhone slow down since version 7.138
Post by: fxdude on 2009-Oct-16
Quote from: Kitty Hello on 2009-Oct-15
But you can confirm it was faster with the old compiler version?
I can confirm it
Title: Re: iPhone slow down since version 7.138
Post by: Kitty Hello on 2009-Oct-16
With what version?
Title: Re: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-16
FxDude is my partner in the USA (and also special effects guru in hollywood http://www.hollywood.com/celebrity/3376627/Ken_Tarallo_Credits ). He does all the artwork. He istalking about version 7.115.  =D Note: he does not have a copy of GLBASIC, I simply send him the XCODE project which he compiles on his MAC and then loads onto iTouch for testing of gameplay and graphics etc. To do this he is also registered as an Apple iPhone developer. This is how we set it up so that an artist and a programmer could work together on an iPhone project. Hope this all makes sense?
Title: Re: iPhone slow down since version 7.138
Post by: Kitty Hello on 2009-Oct-16
It's totally insane. I checked and checked again. I can't find any difference that should cause trouble.
Can you send me a full project (PM for my email) that I can use to reproduce it?
Title: Re: iPhone slow down since version 7.138
Post by: codegit on 2009-Oct-16
okay, i have sent PM