Kisak-Strike
Kisak-Strike copied to clipboard
togl: use PBO instead glGetTexImage
That should help with dlights
oy I think I broke it, the dlights still work tho. Did u make any more changes elsewhere? I didn't get the header file in the commit
yeah if I put kGLMTexDynamic onto more types, it seems to work but it breaks the net_graph text
Well i forget header file yes
yeah i figured those out but I get black textures after dlights occur unless I put dynamic on every texture(and then the vgui fonts break)
yeah i figured those out but I get black textures after dlights occur unless I put dynamic on every texture(and then the vgui fonts break)
Lol what
Don't do that
yeah i wasn't gonna, just testing something
Hmm maybe that's only csgo problem. I don't have problems like that in css/hl2
Well, in csgo lightmaps are updated in the same way as in css. Maybe the implementation of togl is changed somewhere
LoL
weed-vision
Well, I needed to rebuild everything to which togl links.
yo for some reason in csgo there's like 2-3 different versions of this glm code.
The enums don't even match :skull:
https://github.com/SwagSoftware/Kisak-Strike/blob/master/public/togl/cglmtex.h#L96
https://github.com/SwagSoftware/Kisak-Strike/blob/master/public/glmgr/cglmtex.h#L79
yeah they're unused though, didn't fix anything
Hmm try to run with -gl_debug
Oops maybe that's my fault. I found funny bug
For textures locked with D3DLOCK_READONLY flag must be used old reading method, well
didn't seem to be the issue for me. I'll mess with it later
Testing FPS drop (by setting all textures to dynamic to get this to work), it seems to work really good, there's basically no drop with my 4 dlight test at 300fps cap.
bro why are there some walls that are just immune to dlights? (Even with regular code). I swear this game is so jank. Probably some random wall texture flag?
The main problem with CS:GO is that the asset-pipeline sucks major nuts. Redo'ing that is also a lot of work, but hammer should just be dumpster'd and we make a trenchbroom mod or something
I have an idea. Try to build this for csgo https://github.com/nillerusr/source-engine/tree/master/togles It uses OpenGLES 3.2( and can work opengl 3.2 core context )
I have an idea. Try to build this for csgo https://github.com/nillerusr/source-engine/tree/master/togles It uses OpenGLES 3.2( and can work opengl 3.2 core context )
was this ever attempted?