-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
togl: use PBO instead glGetTexImage #39
base: master
Are you sure you want to change the base?
Conversation
That should help with dlights |
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) |
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 |
weed-vision |
yo for some reason in csgo there's like 2-3 different versions of this glm code. The enums don't even match 💀 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 |
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 |
was this ever attempted? |
No description provided.