Closed rexhang closed 1 year ago
you can replace '"webgl"' to '"webgl2"' in retroarch.js .than will webgl2
How did you do it?
replace js if u use .4.99. find "wasmAsmjs" add at the end wasmAsmjs = wasmAsmjs.replace('"webgl"','"webgl2"')
0.5.8 find 'WASM_JS'
WASM_JS = WASM_JS.replace('"webgl"','"webgl2"')
if use arcade-data.zip unfile , replace the "retroarch.js"
replace js if u use .4.99. find "wasmAsmjs" add at the end wasmAsmjs = wasmAsmjs.replace('"webgl"','"webgl2"')
0.5.8 find 'WASM_JS'
WASM_JS = WASM_JS.replace('"webgl"','"webgl2"')
if use arcade-data.zip unfile , replace the "retroarch.js"
how to run arcade games? visit /arcade.html ?
arcade.html is test to run,u must edit index.html to run arcade
arcade.html is test to run,u must edit index.html to run arcade
arcade game seems to need url to load file or blobObject can't
<script type="text/javascript">
var EJS_DEBUG_ = true;
var EJS_EMU = new EJS('#game',{
gameUrl:'kof97.zip',
system:'arcade',
biosurl:'bios/arcade.7z', //set bios
});
</script>
Others' websites use webgl2 for rendering, which has better performance, smoother operation, and lower hardware usage, Also supports high frame rate.
And our canvas currently uses webgl to render instead of webgl2.
Here to upgrade the rendering method to webgl2, is it necessary to re-make C language make to wasm files?
Hope to get your reply support.
thanks.