webgl-benchmark - npm

文章推薦指數: 80 %
投票人數:10人

Benchmark WebGL performance using different JavaScript rendering/game engines, such as Pixi and Phaser.. Latest version: 1.5.0, ... webgl-benchmark1.5.0 • Public • Published2monthsagoReadmeExploreBETA6Dependencies0Dependents11Versions webgl-benchmark BenchmarkWebGLperformanceusingdifferentJavaScriptrendering/gameengines,suchasPixiandPhaser https://themoonrat.github.io/webgl-benchmark/ Background Thereare2commonquestionswhendevelopingcontentsusingWebGL WhichlibraryshouldIchoose? Whatisthemostefficientwaytoconstructascenetoberendered? Questionnumber1isimpossibletoanswer,astherearemanyquestionsandconsiderationsoutsideofpurerenderingperformance.Butthisprojectdoesallowyoutomakealike-for-likeperformancecomparisonacrossscenesthataresetuptobeassimilaraspossible. Questionnumber2canbehelpedwiththisprojectbycomparingsceneswithinthesameengine,anddiscoveringwhatismostefficient. LibrariescurrentlycoveredarePixi,Phaser2andPhaser3. Scenescoveredrangefromtestingrawspriterenderingperformance,totestinggraphics&shapesrenderingperformance. Usage Youcanfindthelatestbuildathttps://themoonrat.github.io/webgl-benchmark/ Youcanalsoclonethisrepoandrunnpmrunstartforadevelopmentbuild,ornpmrunbuildforaproductionbuild. Thereare4optionsyoucanchange Library:Switchbetweendifferentrenderinglibraries.Thiswillrefreshthebrowser,asitcannotbechangedonthefly. Version:Switchbetweendifferentversionsofthecurrentlyselectedrenderinglibrary.Thistoowillrefreshthebrowser. Scene:Switchbetweendifferent'scenes'onthefly.Eachscenestresstestsadifferentaspectoftherenderinglibraryandtheabilityofthehardwareyouarerunning. ObjectCount:Changehowmanyobjectsarecurrentlybeingrenderedatonce.Somelibrariesarequickeratadding/removingobjectsthanothers,sobepatient,especiallyattheveryhighend. License MIT KeywordsWebGLPixiPixijsPhaserBenchmarkInstallnpmiwebgl-benchmarkRepositoryGitgithub.com/themoonrat/webgl-benchmarkHomepagegithub.com/themoonrat/webgl-benchmark#readmeDownloadsWeeklyDownloads2Version1.5.0LicenseMITUnpackedSize600kBTotalFiles80Lastpublish2monthsagoCollaboratorsTryonRunKitReportmalware



請為這篇文章評分?