Page 1 of 1

Visual Effect Issue on Retina Display

Posted: Wed Jun 06, 2012 6:56 pm
by endernafi
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....

Re: Visual Effect Issue on Retina Display

Posted: Thu Jun 07, 2012 6:28 am
by dave_probertGA6e24
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

Re: Visual Effect Issue on Retina Display

Posted: Sun Jun 10, 2012 12:54 pm
by endernafi
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.......

Re: Visual Effect Issue on Retina Display

Posted: Sun Jun 24, 2012 3:31 pm
by Mark
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

Re: Visual Effect Issue on Retina Display

Posted: Sat Jun 30, 2012 11:43 am
by endernafi
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