{"id":16541056,"url":"https://github.com/hagb/sokudirectxoptimizations","last_synced_at":"2026-06-05T04:31:25.749Z","repository":{"id":257282072,"uuid":"851189031","full_name":"Hagb/SokuDirectXOptimizations","owner":"Hagb","description":"A mod for 東方非想天則 / Touhou 12.3 Hisoutensoku to introduce some optimizations about DirectX","archived":false,"fork":false,"pushed_at":"2024-09-15T17:14:56.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T04:41:36.553Z","etag":null,"topics":["hisoutensoku","touhou","touhou-games","touhou-project"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hagb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-02T15:37:04.000Z","updated_at":"2024-09-15T17:12:18.000Z","dependencies_parsed_at":"2024-09-15T18:45:15.001Z","dependency_job_id":null,"html_url":"https://github.com/Hagb/SokuDirectXOptimizations","commit_stats":null,"previous_names":["hagb/sokudirectxoptimizations"],"tags_count":3,"template":false,"template_full_name":"SokuDev/ModTemplate","purl":"pkg:github/Hagb/SokuDirectXOptimizations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hagb%2FSokuDirectXOptimizations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hagb%2FSokuDirectXOptimizations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hagb%2FSokuDirectXOptimizations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hagb%2FSokuDirectXOptimizations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hagb","download_url":"https://codeload.github.com/Hagb/SokuDirectXOptimizations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hagb%2FSokuDirectXOptimizations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33930307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hisoutensoku","touhou","touhou-games","touhou-project"],"created_at":"2024-10-11T18:53:57.828Z","updated_at":"2026-06-05T04:31:25.730Z","avatar_url":"https://github.com/Hagb.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SokuDirectXOptimizations for Hisoutensoku\n\nThis mod introduces some optimizations about DirectX into Hisoutensoku as follows:\n\n- It makes Soku's rendering parallel with the processing of the game, i.e., rendering will no longer block the main thread of the game. As a result, the possibility of frame drops will be reduced, and even if the rendering inevitably becomes stammering because of performance issues, your game will not be slowed down if your CPU is not too bad. This will improve the gaming experience for those who sometimes get frame drops. Moreover, I also recommend that all players, even those with good hardware, install and enable this mod as insurance.\n- Speeds up texture loading a little.\n- Supports DirectX 9Ex, which may reduce the memory and CPU usage a bit, according to Microsoft. (It is enabled by default, and you can toggle it off by setting `use_d3d9ex=0` in `SokuDirectXOptimizations.ini`. The current version of SokuLobbies will mass up its text rendering with this option enabled.)\n- Supports VSync (Vertical Synchronization). (It is disabled by default, and you can enable it by setting `vsync=0` in `SokuDirectXOptimizations.ini`.)\n\n# Build\nRequires CMake, git and the VisualStudio compiler (MSVC).\nBoth git and cmake needs to be in the PATH environment variable.\n\nAll the following commands are to be run inside the visual studio 32bits compiler\ncommand prompt (called `x86 Native Tools Command Prompt for VS 20XX` in the start menu), unless stated otherwise.\n\n## Initialization\nFirst go inside the folder you want the repository to be in.\nIn this example it will be C:\\Users\\PinkySmile\\SokuProjects but remember to replace this\nwith the path for your machine. If you don't want to type the full path, you can drag and\ndrop the folder onto the console.\n\n`cd C:\\Users\\PinkySmile\\SokuProjects`\n\nNow let's download the repository and initialize it for the first time\n```\ngit clone https://github.com/SokuDev/ModTemplate\ncd ModTemplate\ngit submodule init\ngit submodule update\nmkdir build\ncd build\ncmake .. -G \"NMake Makefiles\" -DCMAKE_BUILD_TYPE=Debug\n```\nNote that if you want to build in Release, you should replace `-DCMAKE_BUILD_TYPE=Debug` with `-DCMAKE_BUILD_TYPE=Release`.\n\n## Compiling\nNow, to build the mod, go to the build directory (if you did the previous step you already are)\n`cd C:\\Users\\PinkySmile\\SokuProjects\\ModTemplate\\build` and invoke the compiler by running `cmake --build . --target ModTemplate`. If you change the name of the mod (in the add_library statement in CMakeLists.txt), you will need to replace 'ModTemplate' by the name of your mod in the previous command.\n\nYou should find the resulting ModTemplate.dll mod inside the build folder that can be to SWRSToys.ini.\nIn my case, I would add this line to it `ModTemplate=C:/Users/PinkySmile/SokuProjects/ModTemplate/build/ModTemplate.dll`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhagb%2Fsokudirectxoptimizations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhagb%2Fsokudirectxoptimizations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhagb%2Fsokudirectxoptimizations/lists"}