1. Android Central Question's Avatar
    in my game i use surfaceview And Canvas to draw sprites on screen for achiving this in all screen size: i test two way:

    first: when canvase want to draw Framebuffer(final bitmap) on screen, scale this framebuffer by using

    canvas.drawBitmap(framebuffer, null, dstRect, paint);

    but frame per second(fps) reduce And game dont run smooth( smaller screen = smoother game runing)

    two: if i load And scale all photo in start of game accordindg to screen size --> Grow heap increase use this in this way:

    canvas.drawBitmap(framebuffer, 0, 0, paint);

    All of images are Maximum 480*800 pixel

    (****an image without scale, allocate 1.5 mb And with scale for a 1080*1920 device allocate about 10mb *****)
    11-13-2017 11:17 AM
  2. B. Diddy's Avatar
    Moved to the Software Development forum.
    11-15-2017 12:45 AM

Similar Threads

  1. Why so many "India" Posts on main page?
    By Gmanmonster in forum Site Feedback & Help
    Replies: 3
    Last Post: 12-28-2017, 07:54 AM
  2. Screen responsiveness issuess
    By dgcorn in forum Samsung Galaxy S8 Active
    Replies: 1
    Last Post: 11-17-2017, 09:02 AM
  3. Replies: 4
    Last Post: 11-13-2017, 02:41 PM
  4. How do i clear all cached data on zte blade
    By Android Central Question in forum Ask a Question
    Replies: 1
    Last Post: 11-13-2017, 11:48 AM
  5. Why can't I sign in to Wfi netwwork with my samsung phone?
    By Android Central Question in forum Ask a Question
    Replies: 1
    Last Post: 11-13-2017, 11:24 AM
LINK TO POST COPIED TO CLIPBOARD