Mamajuano's Recent Forum Activity

  • Ive spend the last week looking for a solution on this problem, searching threads on this forum, but found nothing clear.

    The problem is with Crosswalk for Android.

    When you turn the high dpi display mode to on, you get very good quality and clarity on the whole project, but the fps decreases a lot

    With high dpi off, the quality descreases a lot (all sprites blurry) but you can execute it on a lot of devices with very good fps.

    The mystery for me is when i try it on a phone with a 1280 x 720 screen, the same size of the project, the quality (and performance) varies with dpi on/off. Should not be the pixel scale 1:1 on the same resolution?

    What exaclty does dpi mode?

    Hmin wrote this

    [quote:2lw7s32m]As mentioned by Mayfly, the image would NOT become blurry if the high DPI is turned on by Contruct2. That is true because, on a high dpi device, the display density is always greater than 1, for example, it is 2.0 on Google Nexus 7, and so window.devicePixelRatio in Crosswalk engine is also set to 2.0. The value of window.devicePixelRatio will be used to draw canvas by C2 runtime if high dpi mode is turned on, to get a more sharp image. In case of high dpi mode is turned off, C2 runtime tries to draw the canvas with the default value 1.0 on a high-dpi screen, as a result, the final image output becomes blurry since the pixels drawn by C2 runtime would be hard-scaled to fit the high-dpi screen dimension.

    The solution for Crosswalk is simple, you can pass --force-device-scale-factor=1.0 command line option to Crosswalk engine in assets/xwalk-command-line. Note the command line file is supported from Crosswalk 6.

    This means that with dpi off renders at half resolution and then fills the screen, and with dpi on renders at native resolution of the device? Why a project with the same resolution of the device the quality change with dpi on/off?

    Anyone tried --force-device-scale-factor=1.0 instead of high dpi on c2? I dont know how to add that command on intel xdk.

    I tested near 50 builds with a lot of combinations, fullscreen quality, downscale, sampling, etc... but cant find a solution.

    The project with dpi off appears to be very unproffesional because of the blurry sprites.

    Are there any other way to get clear and quality without dpi on?

    Thanks for your help!

  • Im testing this too with crosswalk for android, and i noticed that in low quality fullscreen mode get less fps and less quality. I think im doing something wrong.

    The device screen is 1280 x 720, and the project size is 1280 x 720 too. Should not be differences from switching low/high in the same resolution i think. But in another device with 1920 x 1080, the fps drops with low quality too.

    Low quality is supposed to render first in 1280 x 720, and then upscales? And in high quality first scale to 1920 x 1080 and then render? In theory high quality must be slower than low quality, but not happens.

    I dont know if the High Dpi mode on has something to do.

    Sorry for my english and the high low high low high low

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have the same problem with performance, but my game is only a test and dont have ads yet.

    Tried to disable internet but no difference. With Crosswalk 7 runs fine.

    And other thing related to the gpu black list. Ive tested the game on a mediatek mt6592 (mali 450 gpu), and runs very very slow. In a motorola motog runs fine, and is a lot less powerfull phone. Isnt the blacklist disabled by default on intel xdk?

  • --

Mamajuano's avatar

Mamajuano

Member since 23 Dec, 2014

None one is following Mamajuano yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies