BASIC

Author Topic: Is there a way to roll back to a previous version?  (Read 3021 times)

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Hi

Is there a way to roll back to a previous version of GLBASIC. Unfortunately I did not tick the create backup file option(sorry). I would like to roll back to version 7.115. I apologise for this but the performance of the new version has a serious slow down for me on the iPhone and I am almost ready to release my first game.  O_O
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1767
    • View Profile
    • Homepage
If someone else has that backup you should be able to install it. I don't know if the license is stored somewhere in the backup but I doubt it, more likely in the registry. I haven't updated in a while so my last version is 7.104

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
I have a .zip file of version 7.087 (which was created by the updater) but I have tried to recover using these files and have been unable too. I keep getting a create error, so I suppose it has something to do with security or registry??

Kitty - If you compile wumbo(iPhone) with the new compiler do you not see a slow down?
« Last Edit: 2009-Oct-15 by codegit »
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10683
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
It runs with the current version. I don't see a slowdown, but you might be right, of course. I have to investigate what I changed since then and redo that.
Also - are you using POLYVECTOR that's slowing down, or just DRAWSPRITE? Or what are you using?

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
I am using drawsprite, animsprite plus all the roto commands etc. Also, I thought it might be my iTouch, but the other apps still run fine, so my machine is okay.

Here is an example of my code.
Code: GLBasic [Select]
FUNCTION drawdecal:

        nowtime# = GETTIMERALL()
        FOR g = 0 TO 19
                IF decal[g].state% = 1
                        ALPHAMODE decal[g].alpha#
                        IF (decal[g].x# > 210)
                                decal[g].x# = 210
                        ENDIF
                        IF (decal[g].x# < 5)
                                decal[g].x# = 5
                        ENDIF
                        ROTOZOOMANIM 118,decal[g].img,decal[g].x#,decal[g].y#,decal[g].angle#,decal[g].scale#
                        ALPHAMODE 0.0
                        IF nowtime# > decal[g].vtime# + 15
                                decal[g].vtime# = GETTIMERALL()
                                decal[g].scale# = decal[g].scale# + 0.05
                                decal[g].alpha# = decal[g].alpha# - 0.04
                                IF (decal[g].alpha# < 0.0001)
                                        decal[g].state% = 0
                                ENDIF
                        ENDIF
                ENDIF
        NEXT
ENDFUNCTION
 
« Last Edit: 2009-Oct-15 by Kitty Hello »
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

MrTAToad

  • Guest
Are you using the latest 3.1.2 iPhone update ?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10683
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
OK, I made a new update that reverts to what I think I migth have been changing. Is it faster now?

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Thank you. I will download the update recompile/test and then get back to you guys.  :good: :good:
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
It is still very slow. I loaded back a project from 23 September 2009 (Which used to run very well with the old compiler and recompiled with version 7.144 and now this version also runs slow.  :'( :'( :'( :'(

@Mr Toad, no i am still using 3.1, I have not yet updated my OS.
« Last Edit: 2009-Oct-15 by codegit »
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10683
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Can you really confirm it used to be running faster?

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Yes definitely (not only by a few frames, but quite substancial). My artist in the usa is still running the same version on his iTouch with no problems. Nothing has changed in the coding or graphics. Is there possibility for me to roll back a to a different version??
« Last Edit: 2009-Oct-15 by codegit »
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

MrTAToad

  • Guest
You wouldn't happen to note the FPS would you ?

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
I cannot give the exact frame drop but it is substancial. If nobody else has the problem then it has something to do with me. But as I said I take a project that is two weeks old and definitely used to run fast (my iTouch and the artist in the USA), then recompile that same project(no code or graphic change) with the new compiler and then it runs extremely slow. I have also tried compiling on two different laptops and still the same. Obviously when running on the PC there is no visible frame drop. I am lost on this one.
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10683
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
The problem is, when you are close to the 60FPS limit, and draw a single dot more (might be due to my code changes - no idea), then it can't sync to 60fps and will sync to every other frame (30 fps).

Really - if you could reinstall an older version and verify the slowdown, it would be the best. Don't you have the zipped old version?
Basically you just need the files:
compiiler/platform/include/glb.h
compiler/platform/iphone/Xcode/lib/libglbasic??.a

also remove the XCode directory from your project and rebuild.

MrTAToad

  • Guest
I've got RC2 (06/08/09) here, if you want it.  I've also got one dated the12th - dont know which version it is, because there is no version information in the file...