fl0at
studyin' like heck
- Joined
- Mar 26, 2010
- Messages
- 1,865
- Likes
- 1
In a moment of weakness last night, I gave into the rare occurrence of thought and came up with two supplemental additions, should animations be once again desired.
1. To keep bandwidth in check, you could create a CRON job to execute a shell/Perl script that would determine percentage of bandwidth used for the month. If the percentage hits a threshold, say 85%, make a call to the database to set "disable_ani" to 1, and within the code to display avi, check that value before executing. That way if bandwidth approaches max, all animations are cut off for all users. Running the CRON job 3 or 4 times a day will make sure that once the new month hits, and percentage drops to 0 (make sure you have numerator value + 1 to keep from having a non-real error), the disable will be reset. And, it would allow continuous monitoring of bandwidth relative to new animations.
2. If the idea of everyone having animations disabled could take away from the aesthetics of the board, once a user uploads an image, a snapshot of the first frame of the animation could also be stored as "avatarfilename_static.ext," and instead of simply disabling all avatars for non-users/those without animations checked, the call to display the avatar would instead display the static image.
Just little ideas to help you decide if you want to bring it back, or not.
1. To keep bandwidth in check, you could create a CRON job to execute a shell/Perl script that would determine percentage of bandwidth used for the month. If the percentage hits a threshold, say 85%, make a call to the database to set "disable_ani" to 1, and within the code to display avi, check that value before executing. That way if bandwidth approaches max, all animations are cut off for all users. Running the CRON job 3 or 4 times a day will make sure that once the new month hits, and percentage drops to 0 (make sure you have numerator value + 1 to keep from having a non-real error), the disable will be reset. And, it would allow continuous monitoring of bandwidth relative to new animations.
2. If the idea of everyone having animations disabled could take away from the aesthetics of the board, once a user uploads an image, a snapshot of the first frame of the animation could also be stored as "avatarfilename_static.ext," and instead of simply disabling all avatars for non-users/those without animations checked, the call to display the avatar would instead display the static image.
Just little ideas to help you decide if you want to bring it back, or not.