What started out as a weekend project blew up to such proportions, and led me to learn many new and interesting concepts along the way. While I could further boost ASCII generation and add new functionality to the code, I feel that it would be over-engineering such a simple project. It looks like most of the issues have been rectified, and the code has reached desirableh performance. However, with touhou_bad_apple_v4.0.py, progress will now slow down as I finally close the chapter of this project. Will still look into threading to further expedite asset generation. Should significantly reduce asset generation times, averaging arond 10 ~ 15 seconds using single thread. Though the main concern right now is trying to optimize asset generation times.Ĭhanged the approach of storing assets. Simply by replacing the primitive time.sleep() function with the fpstimer library, frame-time accuracy has been drastically improved, will be slowing down my code optimizations for playback from now onwards. Not too sure on how far I would want to take this project, though my main priority right now would be to adjust frame timings. Though it seems that my implementation of threading/processing is still very botchy and thus asset generation is still sub-optimal. I got about to implementing multi-processing for both frame extraction and ASCII generation. I have created some rudimentary code for process-based and threading-based frame extraction,Īm looking to implement it for the ASCII generation soon. It seems that frame extraction is heavily bottle-necked by the drive's IOPS, and adding threads did not seem to expediateįrame extraction further. I am also looking into improving frame extraction and generation times. txt files, am still trying to find a better implementation. As of current, performance is still not optimal.Ī major bottleneck lies in the IOPS when dealing with the. Though,įurther improvements and optimizations to the code can still be done. With the replacement of the playsound library with pygame, the error over time seemed to have been fixed. This thus leads to the frame accuracy drifting. Performance optimizationsĬurrently, my implementation of a rudimentary static time.sleep() function results in an incremental error over time. Install the necessary dependencies and packages by using:Īnd just follow the on-screen prompts. Then, ensure that you set your terminal to the directory of this repository. You can either git clone or download a ZIP of this repository. Thanks to TheHusyin for adding a requirements.txt file for easier installs. The intent of posting the video on YouTube was to show a few friends of a simple weekend project that I whipped up in Python. There are many iterations and versions around YouTube and I wanted to give it a shot. The concept of playing Bad Apple!! on a Command Line Interface (CLI) is not a novel idea and I am definitely not the first. As the main YouTube Video begins to gain traction, I feel the need to inform the audience that this code is NOT ENTIRELY ORIGINAL. Bad Apple printed out on the console with Python!Ī word of disclaimer, while the final code is somewhat original, this project is an amalgamation of different code snippets that I found online.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |