Comments (7)
you could probably just make a timer to do all the work <tv_delay> + 5 seconds after the game_over event lol
This doesn't solve mid-game uploads. If we wait 90 seconds, it would lag for the players on the server.
you would have a better time doing it in C++ as an extension
Unless there is a default extension which can already do this, it would require every server owner to install an extra extension. I would rather not require that. (And besides, I wouldn't want to develop and maintain an extension.)
alternatively you could write (flush) the log every
x
seconds but i dont know if that would actually be a good idea, might introduce microstutters
The issue is not writing the log, but the file operations happening at the time of upload.
I'm not sure the stutters are still happening. Last match I watched I couldn't find them. Would be worth recreating them to make sure that it's a real thing still
The stutters have always been there, and it is easy for me to recreate them on my own machine.
I have worked on a fix that will reduce the risk of stutters. Here you can see it in action - there is a clear stutter 1 second into the video, which is not visible with the new plugin.
Once I have finished testing, I will release it. (#24)
from f2s-sourcemod-plugins.
from f2s-sourcemod-plugins.
The stuttering is not related to uploading, since that is indeed done in a background thread. It is related to some of the file operations being done by the plugin. I am looking into splitting the workload into smaller chunks, to avoid stutters.
from f2s-sourcemod-plugins.
you could probably just make a timer to do all the work <tv_delay> + 5 seconds after the game_over event lol
that would make it take 90 seconds to get logs uploaded but also like, whatever? definitely an easier solution than setting up threads or async bullshit in sourcepawn, you would have a better time doing it in C++ as an extension
from f2s-sourcemod-plugins.
alternatively you could write (flush) the log every x
seconds but i dont know if that would actually be a good idea, might introduce microstutters
from f2s-sourcemod-plugins.
I'm not sure the stutters are still happening. Last match I watched I couldn't find them. Would be worth recreating them to make sure that it's a real thing still
from f2s-sourcemod-plugins.
phenomenal work
from f2s-sourcemod-plugins.
Related Issues (14)
- Add option to eat / hide "!log" in chat
- Pause events not logged correctly
- Pause could log duration HOT 1
- publish plugins on github HOT 4
- Pause plugin allows ubers to be built during pauses
- Incorrect Medic Stats HOT 5
- logs.tf plugin does not check for the 'logs' folder before writing to log file HOT 1
- can't auto uploader logs tf
- [disabled/comp/logstf.smx] Could not copy file from logs/logstf.log to logs/disabled/comp/logstf.smx.162010827.90208.txt HOT 3
- Precompiled plugins are broken HOT 4
- Add HTTP Status Code to error log when fail to upload log. HOT 1
- [LogsTF] Alter link print to use PrintToChatAll instead of MC_PrintToChatAll HOT 2
- SteamWorks logs upload broken / buggy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from f2s-sourcemod-plugins.