Should I migrate my app to use Graphic 2.0?

There are some code change needed to use the latest daily build (with Graphic 2.0), such as there is no more setReferencePoint() function

Except for the new features that Graphic 2.0 has, does it improve a lot of other things to make the app more smooth?

I don’t think my app would use any new feature of Graphic 2.0 because it’s a business app (but I do use some graphic transitions for flipping pages), so I am wondering what’s the advantage for the migration? and the necessity?

I don’t see the need to upgrade just for upgrade’s sake. However for maintainability I’d upgrade to Graphics 2.0 whenever you need to make any updates to your apps.

Personally I’ve found that upgrading business apps have been much smoother/quicker than games.

I had absolutely zero use for the G2 features for my business apps but I have been forced to update my app since it was made clear that the widget bug-fixes we so direly needed was only going to be provided on the new G2 based platform going forward. So if you don’t need any of the bug-fixes then your best bet is to remain with #1260 for now but sooner or later you will want to get the improved widgets for your apps. Just my humble opinion.

We cannot provide support for the G1.0 engine forever.  What I would suggest is if you are close to publishing and setting the graphicsCompatibility = 1 flag in your config.lua doesn’t work for you, then you probably should consider deploying with a 1.0 build.

If you’ve got time, I would go ahead and take the time and convert to 2.0.  That would get your code-base future proofed the best. 

If you are somewhere in between, I would use the graphicsCompatiblity = 1 flag and then make whatever changes are needed to get that working for you.

Any new projects or newly started projects should only be done in the G2.0 engine.

Rob

Thanks for the feedback. After I saw the difference between G1 & G2 (by using graphicsCompatibility=1), I decided to migrate to G2 immediately.

Although I don’t use any new features (yet), the graphic runs much smoother and quicker… not just a little, a very impressed improvement. Corona rocks!

I have finished the migration, probably 7-8 hours (a business app though). Mainly,

(1) remove all setReferencePoint by using anchor

(2) change color values by adding ‘/255’

(3) newText() / newRect() is now center by default

(4) Some groups have to set anchorChildren to true, and there are some deprecated APIs.

but it’s kind of hard to know if there is any “left-over” until all scenarios are tested.

Welcome any suggestion/experience sharing for the migration. Thanks.

@joe528

Thanks for posting the migrating tips to other folks!

I don’t see the need to upgrade just for upgrade’s sake. However for maintainability I’d upgrade to Graphics 2.0 whenever you need to make any updates to your apps.

Personally I’ve found that upgrading business apps have been much smoother/quicker than games.

I had absolutely zero use for the G2 features for my business apps but I have been forced to update my app since it was made clear that the widget bug-fixes we so direly needed was only going to be provided on the new G2 based platform going forward. So if you don’t need any of the bug-fixes then your best bet is to remain with #1260 for now but sooner or later you will want to get the improved widgets for your apps. Just my humble opinion.

We cannot provide support for the G1.0 engine forever.  What I would suggest is if you are close to publishing and setting the graphicsCompatibility = 1 flag in your config.lua doesn’t work for you, then you probably should consider deploying with a 1.0 build.

If you’ve got time, I would go ahead and take the time and convert to 2.0.  That would get your code-base future proofed the best. 

If you are somewhere in between, I would use the graphicsCompatiblity = 1 flag and then make whatever changes are needed to get that working for you.

Any new projects or newly started projects should only be done in the G2.0 engine.

Rob

Thanks for the feedback. After I saw the difference between G1 & G2 (by using graphicsCompatibility=1), I decided to migrate to G2 immediately.

Although I don’t use any new features (yet), the graphic runs much smoother and quicker… not just a little, a very impressed improvement. Corona rocks!

I have finished the migration, probably 7-8 hours (a business app though). Mainly,

(1) remove all setReferencePoint by using anchor

(2) change color values by adding ‘/255’

(3) newText() / newRect() is now center by default

(4) Some groups have to set anchorChildren to true, and there are some deprecated APIs.

but it’s kind of hard to know if there is any “left-over” until all scenarios are tested.

Welcome any suggestion/experience sharing for the migration. Thanks.

@joe528

Thanks for posting the migrating tips to other folks!