Visual Effect Issue on Retina Display

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Contact:

Visual Effect Issue on Retina Display

Post by endernafi » Wed Jun 06, 2012 6:56 pm

Hello Dear LiveCoders,

I'm using the iphoneUseDeviceResolution true, true command in my apps.
Graphics are shown excellent, look and feel is fine.
However, visual effects are horrible.
If I prefer not to use iphoneUseDeviceResolution true, true command,
everything is smooth and works as expected, nothing's wrong.
Except :) the overall quality of look and feel.
It's not crisp anymore, rather blurry and grainy.
Because of, you know, interpreting and interpolating 1 point as 2 px and blah blah...
It's like setting the screen resolution of a 1920*1200 monitor to 800*600 :roll:

Well, below are some of issues on retina.
But beyond them,
all of my apps which use the above command crash constantly whenever a visual effect is to begin.
So, it crashes and crashes and crashes and...
I say "¡Hola, it didn't crash :D "
but then again, one of the following issues :x


Please reply and comment and help :oops:

* Hiding a group and showing another one in the same card {with visual effect of course},
the effect occur only top 1/4th of the screen. I guess it thinks that it's operating in a non-retina display.
The rest of the screen, i.e 3/4th of it, keep the old group, which should have been hidden.
Voila, a scrambled screen :cry:

Code: Select all

lock screen for visual effect
hide group 1
hide group 2
show group 3
unlock screen with visual effect push left fast
* Changing the cards with visual effect, it's slow as a turtle, I mean rrrgh :evil:

Code: Select all

visual effect push right
go to card 2
* Changing the filename property of an image when user swiped on it,
for an image slide view, it's slow and chunky;
and most of the time only a portion of image change.
As a result, a weird mixture of two different images is shown.
Well, again, voila, a much more scrambled screen :cry: :cry:

Code: Select all

on userDidSwipeOnSlider
lock screen for visual effect
put gImageIndex into i
add 1 to i
set the filename of image "slider" to gFolderOfImages & slash & i & ".png"
put i into gImageIndex
unlock screen with visual effect dissolve fast
end userDidSwipeOnSlider
* This one is a real bummer.
I use iPhone Scroller Control a lot.
For example,
there is a Latest News section on my homepage.
It's appr. 200px*300px; and user should be able to scroll it up & down.
Except, they cannot!
It's either too slow and jumpy or it doesn't work at all.
One can see the indicator going up & down but the content keep same.

Code: Select all

on scrollerDidScroll hOffset, vOffset
set the vScroll of group "latestNews" to vOffset
end scrollerDidScroll hOffset, vOffset


Any help, idea, comment, guess, anything much appreciated :)
Thanks....
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: Visual Effect Issue on Retina Display

Post by dave_probertGA6e24 » Thu Jun 07, 2012 6:28 am

Hi,

You might find that you need to turn on the Accelerated Rendering option (introduced in 5.0.2)
in the stack onPreOpen handler put this:

Code: Select all

on preOpenStack
   set the acceleratedRendering of this stack to true
end preOpenStack
Some things to be aware of in regard to it though are mentioned here:
http://livecodejournal.com/forum/viewto ... 43c195#p57

I hope that can help a bit.

Cheers,
Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Contact:

Re: Visual Effect Issue on Retina Display

Post by endernafi » Sun Jun 10, 2012 12:54 pm

Hi Dave,


Thanks for your advice.
I was very hopeful about that method.
But it didn't change anything, unfortunately.
I've read the link too,
and tweaked the layerMode properties of my groups.

But again, no luck.
I don't know what to do, it's a frustrating situation.
My customers want -naturally- crisp and smooth visuality,
and I cannot provide this to them.

Maybe I should subscribe to Developer Program
and let the seniors examine my code...


Well, thanks anyway.

Regards.......
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Visual Effect Issue on Retina Display

Post by Mark » Sun Jun 24, 2012 3:31 pm

Hi,

The developer program doesn't give you technical support that you can't get elsewhere. The people on the developer mailing list are also around on this forum and on the user mailing list and some "senior" people aren't on the developer list ;-)

I have the impression that you stumbled into a bug. Report it to RunRev and hope they fix it.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Contact:

Re: Visual Effect Issue on Retina Display

Post by endernafi » Sat Jun 30, 2012 11:43 am

Hello Mark,

You're right, it looks like a bug.
However, I've come to a solution.
I use different substacks for different resolutions / devices.
It was fine until I've tossed to another wall.
But that needs opening a new topic, I guess.
Shortly, I can go to a substack on startup but can't change substacks while app is running.
I couldn't find any answer via forum search, so I'll open a new topic.
Maybe there are some other guys dealing with the same issue;
and they also benefit from the replies...


Regards,

~ Ender Nafi
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

Post Reply