あのときって、結構、描画頻度落としてスクロールしてるんですよね。
Androidでも、同様に、高速スクロール時に描画頻度を落とせないかなーと思い、実験。
コード差分は、すんごいテキトーだけど、こんな感じ。
25msec以内の描画要求は、わざと25msecまで待たせて、描画要求をふんづまらせてるだけ。
https://gist.github.com/yi01/c50c0828b4d05cb5e5ea/revisions
server.document-root = "C:\Program Files\LightTPD\htdocs" server.modules = ( "mod_access","mod_alias","mod_proxy" ) dir-listing.activate = "enable" index-file.names = ( "index.html", "index.htm") url.access-deny = ( "~", ".inc" ) ## include mimetype mapping file include "mimetype.conf" $HTTP["host"] == "web-hack.org" { proxy.server = ( "" => (( "host" => "192.168.124.22", "port" => 80 )) ) } $HTTP["host"] == "www.web-hack.org" { proxy.server = ( "" => (( "host" => "192.168.124.18", "port" => 80 )) ) } $SERVER["socket"] == "sakura.web-hack.org:443" { ssl.engine = "enable" #ssl.ca-file = "cert\ca.crt" ssl.pemfile = "cert\server.pem" proxy.server = ( "" => (( "host" => "192.168.124.10", "port" => 80 )) ) } $HTTP["host"] == "sakura.web-hack.org" { proxy.server = ( "" => (( "host" => "192.168.124.10", "port" => 80 )) ) }
rm -r /System/Library/Extensions/AppleUSBEthernetHost.kext mv /Users/<名前>/Downloads/AppleUSBEthernetHost.kext /System/Library/Extensions/ chmod -R 755 /System/Library/Extensions/AppleUSBEthernetHost.kext chown -R root:wheel /System/Library/Extensions/AppleUSBEthernetHost.kext find /System/Library/Extensions/AppleUSBEthernetHost.kext -type f | xargs chmod 644
sudo a2enmod proxy sudo a2enmod proxy_balancer sudo a2enmod proxy_http
<VirtualHost *:80> ServerName web-hack.org <Proxy balancer://web-hack/> BalancerMember http://192.168.123.10/ BalancerMember http://192.168.123.18/ </Proxy> ProxyPass / balancer://web-hack/ ProxyPassReverse / balancer://web-hack/ </VirtualHost>って書く。
sudo /etc/init.d/apache2 restartとやるだけで、簡易ロードバランサのできあがり。
balancer://web-hack/を
balancer://web-hackと書いてしまうと、よくわからない
[Mon Dec 24 23:33:21 2012] [warn] proxy: No protocol handler was valid for the URL /favicon.ico. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.みたいなエラーが出ます。けっこうはまりました。
日ごろのスナップショットをアップしてみてます。 最近はITネタが多いかも。