shensunbo Blog

「离开世界之前 一切都是过程」

gcov todo

// GCOVR_EXCL_LINE //GCOVR_EXCL_START //GCOVR_EXCL_STOP

english corner organized by me record

20250411 travel experiences 20250418 the book you want to recommend 20250425 good and bad feelings this week

delay Record

使用ffmpeg实现的一个预录制,用于保存开始录制之前的一段时间的视频 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 5...

json.hpp

常用操作 读取数组 1 2 3 4 "ceer_color": [1.0, 1.0, 0.0, 0.3], std::vector<int> color = block.at("color").get<std::vector<int>>(); tmp_block.color = glm::vec3(color.at(0), color.at(1), co...

memcpy优化失败

尝试了多种方式,仍然无法明显优化memcpy的拷贝速度,memcpy应该是已经高度优化过的了 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 ...

修改gerrit的review意见

直接在网页上修改 使用git修改 git fetch origin [git checkout <change-id>] git add . git commit --amend git push origin HEAD:refs/for/branch

LINUX 调试栈

info proc mappings 打印内存映射信息 ``` (gdb) info proc mappings process 104188 Mapped address spaces: 1 2 3 4 5 Start Addr End Addr Size Offset objfile 0x400000 ...

使用 Unix Domain Sockets 在不同进程间传递文件句柄

introduce Note: 句柄通过 msg_control 消息来发送,但是 msg_iov 仍然需要正确填充,不然会报错,可以随便填充一个字符 发送一个描述符会使描述符的引用计数加1,意味着即使在接收进程调用recvmsg之前,发送进程关闭了该描述符,对于接收进程他任然保持打开状态 在接收进程中会创建一个新的描述符,所以发送进程和接收进程的描述符是不相等的...

bgfx

github link

blender脚本,

选中大于10000个三角形的对象 1 2 3 4 5 6 7 8 9 10 11 import bpy bpy.ops.object.select_all(action='DESELECT') for obj in bpy.data.objects: if obj.type == 'MESH': tri_count = len(obj.data.polygons)...