Giter Site home page Giter Site logo

toucheffect's Introduction

Brief description
-----------------
TouchEffect is an engineering tool to profile User Experience of touch. It can generate FPS and Latency when gesture playing on touch-supported UI, which can then be used to analyze the smoothness and responsiveness of the UI behaves.

TouchEffect is a tool composed by two parts: gesture simulator and effect sampler. Gesture simulator, as named, can play gestures like SWIPE, PINCH, etc. automatically. There are two simulators in TouchEffect: gestureSim and eventHunter. gestureSim works based on X extension - XTest, as X extension does not support multi-touch protocol yet, gestureSim can only simulate single-point gestures. eventHunter works based on linux input interface, it simulates both single and multi gestures under the multi-touch protocol. At effect sampler part, effectHunter is just the utility for this. It uses another X extension - XDamage to get the statitics, which can then be used as the refresh rate of the target widget, and also the latency of the first movement.

How to build this tool
----------------------
Get into the folder and type 'make'

TouchEffect uses C++, thus g++ and libstdc++ are needed. And each of its utilities requirs different libraries:
* gestureSim
libxdamage-dev
libxtst-dev

* eventHunter
no specific ones

* effectHunter 
libxdamage-dev
libxtst-dev

And effectHunter also uses pthread library


How to play with this tool
--------------------------
TouchEffect can be played with its perl shell, while each of its utilities can also be executed seperately.
* Sample smoothness (FPS) during SWIPING on a browser page
Firstly open the target web page with browser and make sure the content is long enough to be scrolled, and scroll the page to the middle position to make sure it can be scrolled freely.
Then use 'xwininfo' to get the widget id of the browser window.
And start TouchEffect with cmd below: 
 perl touchEffect.pl -w WIDGET_ID -s X -m FPS -g SWIPING 

toucheffect's People

Contributors

guobing-chen avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.