- Joined
- Oct 28, 2014
- Messages
- 84
- Reaction score
- 65
- First Language
- vietnamese
- Primarily Uses
- RMMV
Hello, i'm a bit troubled. I am developing a plugin
I want it to work well on mobile, as far as I know mobile is not run by webgl, so I have rendered by Canvas
1st Test - Game performance / plugin
Loaded into one map with 3920 tree. It takes ~ 180mb. Within ~ 5ms,
But when playing games 7 FPS
Edited; I have updated more information
File plugin with;
This is the second test
I want it to work well on mobile, as far as I know mobile is not run by webgl, so I have rendered by Canvas
1st Test - Game performance / plugin
Loaded into one map with 3920 tree. It takes ~ 180mb. Within ~ 5ms,
But when playing games 7 FPS
Edited; I have updated more information
Main: A68HM-E33 V2
CPU: Amd Athlon X4 760k, 3800Mhz 2 Cores
GPU: AMD R7 360 OC
Total Physical Memory: 8,152 MB
CPU: Amd Athlon X4 760k, 3800Mhz 2 Cores
GPU: AMD R7 360 OC
Total Physical Memory: 8,152 MB
NWjs version: 0.35.3
Node verions: 11
RPG Maker MV 1.6.1
Node verions: 11
RPG Maker MV 1.6.1
- 1 Map with 17 x 13 (tiles)
- 1 picture tree.png
- 1 Plugin
File plugin with;
PHP:
class UHPD_Sprite extends PIXI.Sprite (){
constructor(texture){super(texture);}
}
class UHPD_MapObject extends UHPD_Sprite (){
constructor(obj, texture) {
super(texture);
this.initialize(obj);
}
}
PHP:
const oldSpriteset_Map = Spriteset_Map.prototype.createCharacters;
Spriteset_Map.prototype.createCharacters = function (){
oldSpriteset_Map .call(this);
//value is the variable to handle the object
const arr = value.map(k => new UHPD_MapObject(k, textures));
for (const sp of arr) if (sp) this._tilemap.addChild(sp);
}
This is the second test
Last edited: