1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android drawing

Discussion in 'Android Development' started by ClintonBrits, Jul 22, 2019.

  1. ClintonBrits

    ClintonBrits Lurker
    Thread Starter

    Hi everyone. im relatively new to android specifically but i have 20 odd years in differnt programming languages.

    For my third attempt i have tried to build an android version of a windows that is like google maps that stitches map tiles together and then rotates it if needed.

    I creates a new class extends surfaceview and implements runnable to draw the map. if you just load and draw its laggy and adding rotate on the completed map just cripples the performance to being unusable.

    If i then use google maps or other drawing apps like games, it is super smooth and renders fast.

    Is there a trick i am missing with android that allows it to render or draw faster?

    I have removed all the object creation from the draw loop. removed all the strings and just stripped it down to drawbitmaps and rotate with matrix.
     

    Advertisement

Loading...

Share This Page

Loading...