I want help a little with optimization..
But why only I, We all can ^^,
Find what lagging the most, separate it from engine - and create thread here
we all try hard to find solution how improve it
(“separate it from engine” - I think full engine source code not ready be revealed for public)
P.s optimization - Except external libraries like Jbullet and Java3D
PP.S Sorry I Over excited about all this
(because my Pc can’t run fallout 4 and you run it on Adroid XD)
this optimization on practice can be no so easy as it looks for me now.
At least we can try)
Do you use this?
It scares me)
cf = (gl_FrontMaterial.diffuse.rgb +
texel = texture2D(tex,gl_TexCoord.st);
ct = texel.rgb;
gl_FragColor = vec4(ct * cf, gl_Color.a);
as i understand diffuse and ambient can be pre mixed together with texture and save to file
no need do it in shader directly
- if it used really for all lands
this shader can easily split FPS for half or even more
even if ambient dynamically changed in game
- it can be baked on every change in real time to texture and use that texture without mixin in shader directly
gl_FragColor = vec4(ct * cf, gl_Color.a)
external gl_Color.a Why? for debug? i don't remeber game mechanics with custom walls transperancy