background preloader

Biolab Disaster

Biolab Disaster

Impact - HTML5 Canvas & JavaScript Game Engine Memory Welcome back. Since version 0.3 was released, we’ve seen great progress across the browser landscape. Internet Explorer 9 was released. Textures, Textures, and More Textures With WebGL available on both Chrome and Firefox and impressive sprite performance from all of the mainstream browsers, we wondered about another piece of the browser performance pipeline: textures. On desktop, we modified JSGameBench to run a repeated sprite test, increasing texture load by 1MB each time. The results were striking: This graph shows relative sprite performance as texture memory increased. Internet Explorer 9 repeatedly demonstrated the same pattern: steady performance to 10 MB, a run with a 50% performance decline, fast runs again to 15 MB, then a steady decline from 15 MB on. Finally, there’s Chrome 11 on OS X. Strange, but fascinating data. But What About Mobile? Our takeaway? And Now for Something Completely Different To date, we have avoided microbenchmarks for JavaScript. Finally Thank You

About Bitcoin Mining - We Use Coins Let's clear up some misconceptions about mining. Bitcoin mining is a business and very competitive`. Mining makes sense either if you do it for fun and don't care if you make less than you invest, or if you can do it very efficiently. If you want to get Bitcoins based on a fixed amount of mining power, but you don't want to run the actual hardware yourself, you can purchase a mining contract . During mining, your computer runs a cryptographic hashing function (two rounds of SHA256) on what is called a . 93ef6f358fbb998c60802496863052290d4c63735b7fe5bdaac821de96a53a9a You can look at this hash as a really long number. 0787a6fd6e0782f7f8058fbef45f5c17fe89086ad4e78a1520d06505acb4522f If we lower the target to 0100000000000000000000000000000000000000000000000000000000000000, we now need two zeros in the beginning to be under it: 00db27957bd0ba06a5af9e6c81226d74312a7028cf9a08fa125e49f15cae4979 The difficulty changes every 2016 blocks.

WebGL : the future Two weeks ago, Cory, Conor and I released version 0.2 of JSGameBench with increased performance and more refined recommendations. Today, with the release of version 0.3, we get our first taste of the future of high performance web applications: WebGL. The Glorious Future, Here Now WebGL is designed to allow browsers to render 3D scenes within the 2D canvas element. Recall our scores from two weeks ago, where the our Windows 7 test machine hit 1,482 sprites with Firefox 4 and Chrome 10 on OS X pushed 288 sprites. Compare to the WebGL results: WebGL provides a dramatic performance gain on OS X, with Chrome 11 hitting a new record 4,394 sprites and Firefox 4 pushing 2,061. Note that JSGameBench is not using WebGL to accelerate 3D content. WebGL The challenge in using WebGL, especially for those not familair with other OpenGL variants, is the complexity involved with setting up a simple draw context. A canvas element to target. Of course, you also need a WebGL capable browser. Implement WebGL!

When can I use... Support tables for HTML5, CSS3, etc WebGL Water Loading... Made by Evan Wallace This demo requires a decent graphics card and up-to-date drivers. Interactions: Draw on the water to make ripples Drag the background to rotate the camera Press SPACEBAR to pause and unpause Drag the sphere to move it around Press the L key to set the light direction Press the G key to toggle gravity Features: Raytraced reflections and refractions Analytic ambient occlusion Heightfield water simulation * Soft shadows Caustics (see this for details) ** * requires the OES_texture_float extension** requires the OES_standard_derivatives extension Tile texture from zooboing on Flickr

Actualité à la Une Integers are Your Friends Two weeks ago Bruce and I released JSGameBench version 0.1. Today marks the release of version 0.2, a much faster and cleaner version. We continue to learn both from tightening the code and from the strong HTML5 community. Version 0.2 reinforces our belief in HTML5 as a strong, horizontal platform for games and highly interactive applications across the web. Benchmarking In order to talk about browser performance, we needed to standardize. For OS X: a MacBook Pro laptop, currently OS X 10.6.6, 4GB of RAM, 2.66 GHz Intel Core i7, and NVIDIA GT 330M with 512MB of RAM.For Windows: a Lenovo T410s laptop, currently Windows 7 Enterprise, 4GB of RAM, 2.53 GHz Intel Core i5, and NVIDIA NVS 3100M with 512MB of RAM. Both of these laptops are significantly less powerful than the Mac Pro the original tests were run on. More is Better Thanks to help from the HTML5 community, JSGameBench has roughly doubled performance in the most widely used browsers in only two weeks. Some Thank Yous Mobile Differences

Related: