OpenFL HTML5 target - there is any best practice for content scaling?

98 views
Skip to first unread message

Tom

unread,
Jul 16, 2014, 2:25:22 PM7/16/14
to haxe...@googlegroups.com
Hi!

I tried some code for content scaling with HTML5 target of OpenFL. I need to make it support up-scaling to 400% for UHD screens.
If I up-scale a 100% sized element, it will be blurred.
There is any better and more performance-friendly way, than I draw everything at 400% size, and downscale the whole scene?

Any idea?

Thanks for any reply!
Tom

Brennan Kinney

unread,
Jul 17, 2014, 3:48:32 AM7/17/14
to haxe...@googlegroups.com
You want to have several versions of each asset, 1x 2x 4x for example. Then based on the % you scale at you use the most appropriate sized asset.

Philippe Elsass

unread,
Jul 17, 2014, 4:45:54 AM7/17/14
to haxe...@googlegroups.com
Scaling itself shouldn't have any impact on performance.


--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.



--
Philippe

Tom

unread,
Jul 17, 2014, 5:54:01 AM7/17/14
to haxe...@googlegroups.com
Thanks for your answers!
One more question: with the HTML5 target can we use the browser svg renderer, or need to use the Haxe svg library?
Reply all
Reply to author
Forward
0 new messages