(MV) Light effect (Non Webgl)

ashyramoonwolf

Chibo's Keeper
Veteran
Joined
Oct 22, 2017
Messages
206
Reaction score
143
First Language
french
Primarily Uses
RMMV
Hello everyone.
I seen somewhere that Webgl do not work great on mobile and phone. Sadly (else mistake) i also seen Terrax ligthning is using webgl.
Do anyone know/ can adapte, a plugin to have lightning effect but not webgl? (My game on android is laggy each time there is light, and i think this come from the webgl...)
 

peq42_

Yeet
Veteran
Joined
Feb 5, 2016
Messages
484
Reaction score
288
First Language
Portuguese(BR)
Primarily Uses
RMMV
Probably it wont be possible.For MV( and most HTML5 Games) there are only 2 options for graphics renderer: WebGL(Which is a Graphic API based on OpenGL) and Canvas(HTML5 Element to draw graphics). Dynamic shadow is something complex to create, and canvas probably wont handle it well(or wont handle at all).
More information:
https://en.wikipedia.org/wiki/Canvas_element
https://en.wikipedia.org/wiki/WebGL

But being honest with you, i must say that nowadays there are many phones out there that support webgl very well. Even my Vibe K5, wich has an snapdragon 615 + Adreno 405(made in 2016, may cost U$100 or less today) handle webgl well. With time, more and more phones will support it.

This lag of yours must be not because of WebGL, but because of parallel processes, map size or something like that. Phones are extremely weaker than PCs.They have Less and slower Ram, slower GPU, slower CPU,many software limitations,etc. For example: my old R7 260X has up to 1971GFlops/s(1,9TFlops/s) performance, while Adreno 540(The best mobile GPU for android, until Snapdragon 845 comes out) has 567GFlops/s(I couldn't find information about Gtexel/s, GPixel/s,etc But it must be around 1/3 to 1/4 the amount of my card as well). This means that the BEST of the BEST for android can't even be compared to a PC which parts were made in 2013. So you really must make your games with focus on mobile limitations if you wish to port them for mobile.

Try to avoid using parallel processes(use 1 or 2 per map, max), try making small maps, don't use huge images when using "show picture",etc.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top