turbopipe 1.2.0__cp311-cp311-macosx_11_0_arm64.whl → 1.2.2__cp311-cp311-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of turbopipe might be problematic. Click here for more details.

Binary file
@@ -1,34 +1,34 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: turbopipe
3
- Version: 1.2.0
4
- Summary: 🌀 Faster MemoryView inter-process data transfers for subprocesses
5
- Home-page: https://brokensrc.dev
3
+ Version: 1.2.2
4
+ Summary: 🌀 Faster ModernGL Buffers inter-process data transfers for subprocesses
6
5
  Author-Email: Tremeschin <29046864+Tremeschin@users.noreply.github.com>
7
6
  License: MIT License
8
-
9
- Copyright (c) 2024 Gabriel Tremeschin
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions:
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.
28
- Project-URL: Issues, https://github.com/BrokenSource/TurboPipe/issues
29
- Project-URL: Repository, https://github.com/BrokenSource/TurboPipe
30
- Project-URL: Documentation, https://github.com/BrokenSource/TurboPipe
31
- Project-URL: Homepage, https://brokensrc.dev
7
+
8
+ Copyright (c) 2024 Gabriel Tremeschin
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: issues, https://github.com/BrokenSource/TurboPipe/issues
29
+ Project-URL: repository, https://github.com/BrokenSource/TurboPipe
30
+ Project-URL: documentation, https://github.com/BrokenSource/TurboPipe
31
+ Project-URL: homepage, https://brokensrc.dev
32
32
  Requires-Python: >=3.7
33
33
  Requires-Dist: moderngl
34
34
  Description-Content-Type: text/markdown
@@ -100,7 +100,7 @@ import turbopipe
100
100
 
101
101
  # Create ModernGL objects
102
102
  ctx = moderngl.create_standalone_context()
103
- buffer = ctx.buffer(reserve=1920*1080*3)
103
+ buffers = [ctx.buffer(reserve=1920*1080*3) for _ in range(2)]
104
104
 
105
105
  # Make sure resolution, pixel format matches!
106
106
  ffmpeg = subprocess.Popen(
@@ -109,12 +109,15 @@ ffmpeg = subprocess.Popen(
109
109
  )
110
110
 
111
111
  # Rendering loop of yours (eg. 1m footage)
112
- for _ in range(60 * 60):
112
+ for frame in range(60 * 60):
113
+ buffer = buffers[frame % len(buffer)]
114
+ turbopipe.sync(buffer)
115
+ fbo.read_into(buffer)
113
116
  turbopipe.pipe(buffer, ffmpeg.stdin.fileno())
114
117
 
115
118
  # Finalize writing, encoding
116
- turbopipe.sync()
117
119
  ffmpeg.stdin.close()
120
+ turbopipe.close()
118
121
  ffmpeg.wait()
119
122
  ```
120
123
 
@@ -369,4 +372,3 @@ On realistically loads, like [**ShaderFlow**](https://github.com/BrokenSource/Sh
369
372
  - Disable/investigate performance degradation on Windows iGPUs
370
373
  - Improve the thread synchronization and/or use a ThreadPool
371
374
  - Maybe use `mmap` instead of chunks writing on Linux
372
- - Test on macOS 🙈
@@ -0,0 +1,6 @@
1
+ turbopipe/__init__.py,sha256=G5UDJHOgRTkf1viJAKRcsP8eud_2Mx5ToMC9qTqOYZ4,1299
2
+ turbopipe/_turbopipe.cpython-311-darwin.so,sha256=auUUWxeM2yrde5P232XNX0DWgC8JDnt6OZBnwhlpFJ0,76944
3
+ turbopipe-1.2.2.dist-info/License.md,sha256=it5BPGKEP68XuUE54o2wVWR8NeWowkvb5dQO62UPeo8,1075
4
+ turbopipe-1.2.2.dist-info/RECORD,,
5
+ turbopipe-1.2.2.dist-info/WHEEL,sha256=l2MAqKUavsDG6heQe7SYU4Wh2xM6nweWZlhq0Wt7Ao4,93
6
+ turbopipe-1.2.2.dist-info/METADATA,sha256=wOFE8tKTn_jt4GJJVbWkrIGfJZSQbGUuq-vyMA4z2_E,21819
@@ -1,6 +0,0 @@
1
- turbopipe/__init__.py,sha256=G5UDJHOgRTkf1viJAKRcsP8eud_2Mx5ToMC9qTqOYZ4,1299
2
- turbopipe/_turbopipe.cpython-311-darwin.so,sha256=IuRbPxg3felQuk6bkMV71ILfmcuwYIY2q-ONofFj1d8,76944
3
- turbopipe-1.2.0.dist-info/License.md,sha256=it5BPGKEP68XuUE54o2wVWR8NeWowkvb5dQO62UPeo8,1075
4
- turbopipe-1.2.0.dist-info/RECORD,,
5
- turbopipe-1.2.0.dist-info/WHEEL,sha256=l2MAqKUavsDG6heQe7SYU4Wh2xM6nweWZlhq0Wt7Ao4,93
6
- turbopipe-1.2.0.dist-info/METADATA,sha256=hqkixEychwBTMKxxYQ_4ycZaEpyObNyil6vJQt2pdrs,21716