[置顶]
游戏开发入门指引
摘要:
推荐课程 底层向 GAMES 101/202... + openGL迷你渲染器tinyRender + 补充笔记 【双语】【TheCherno】游戏引擎 笔记 旋转是特殊的剪切 blender Lesson 3 变换矩阵 模拟 L3.blend.zip,记得去掉.zip后打开 ui_L3.py备份,
为blender插件制作翻译(i18n/international) make translations for blender addon
摘要:
不直观的教程/文档 https://developer.blender.org/docs/handbook/translating/translator_guide/?utm_source=blender-4.3.2#manage-ui-translations-add-on https://dev
gvhmr .pt 数据解读
摘要:
smpl、smplx、coco等骨架(skeleton)系统 name size K_fullimg (312,3,3) net_outputs-decode_dict-betas (312,10) net_outputs-decode_dict-bodypose (312,63) net_outp
python: 将子函数参数传递给父函数的kwargs,且IDE静态分析有类型提示的3种方法 (2025年)
摘要:
方法1: TypedDict+Unpack 强烈推荐,适用于自己编写的库内使用 外部库不推荐,因为要额外维护Kwargs参数类,且无法对应不同版本的外部库 https://docs.python.org/3/library/typing.html#typing.Unpack 方法2: .pyi存根文
将异步/线程/进程抽象成worker的框架:python-worker (网络编程)
摘要:
https://github.com/Danangjoyoo/python-worker 还挺好用的,一旦写了一些会阻塞异步函数的逻辑,就需要将其移到新线程/进程去执行。如果不用这个库,就需要重构代码。代码需求经常变动,这个库就不错。 import asyncio import time impor
python网络编程:一边延迟启动,一边准备as_completed
摘要:
原代码: import asyncio as aio async def Sleeper(s=1): t = f'Sleeper for {s} seconds' await aio.sleep(s) print(t) return t async def main(): tasks = [Slee
python网络编程:异步与多线程,异卵双胞胎!
摘要:
异步 多线程 多进程 比喻 一个在烧水、泡衣服与洗碗的人 很多洗碗的人 很多语言不通的洗碗的人 核心 很多需要等待的函数同时运行 很多计算任务同时运行 原理 await转让控制权,再次事件循环 共享内存 不共享,使用IPC跨进程消息沟通 限制 - 若 async 函数内有耗时操作 , 会阻塞事件循环
用python做配置文件
摘要:
受zig语言启发,图灵完备的配置文件可能是个不错的选择,只要严格限制权限就行。 用importlib 目标: 禁止二次导入,去除import语句 提供模块白名单、黑名单 import ast from sys import meta_path from importlib.abc import Lo
linux mint/debian/ubuntu 安装sway 2025
摘要:
sway支持multi seats,这就是动机 打算换系统了,linux mint 22.1基于Ubuntu noble,而很多ubuntu package仓库的最新版都在ubuntu的最新系统,很多软件要自行编译,而debian testing(unstable)比ubuntu更新。 也就是说,u
linux bash/zsh/sh 如何查找谁添加了重复项到$PATH
摘要:
在 ~/.bashrc 首行前添加: set -x export ORIGINAL_PATH="$PATH" function check_path_change() { if [[ " ORIGINAL_PATH" ]]; then echo "PATH has change
linux qemu GPU加速
摘要:
无须独占显卡的virtio方式有2种: qemu+各种驱动 docker/podman(distrobox) + nvidia/vulkan qemu教程: https://tm23forest.com/contents/how-to-enable-virtio-gpu-venus-on-qemu-