Added zerocopy, improved stream robustness and reduced latency

This commit is contained in:
RedNicStone
2026-08-26 11:41:54 +01:00
parent 97ff779911
commit 436808a0d0
22 changed files with 1605 additions and 250 deletions

Binary file not shown.

View File

@@ -1,6 +1,11 @@
extends Node
func _ready() -> void:
#$GDVAPIVideoStream.begin("udp://0.0.0.0:5000")
pass
$GDVAPIVideoStream.queue_depth = 4 # default; proves the property binding
$GDVAPIVideoStream.begin("/tmp/gdvapi_test.sdp")
func _process(_delta: float) -> void:
var tex: Texture2D = $GDVAPIVideoStream.get_texture()
if tex:
if $TextureRect.texture != tex:
$TextureRect.texture = tex

View File

@@ -6,5 +6,13 @@
script = ExtResource("1_jdh55")
[node name="GDVAPIVideoStream" type="GDVAPIVideoStream" parent="." unique_id=1053894928]
offset_right = 40.0
offset_bottom = 40.0
[node name="TextureRect" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
expand_mode = 1
stretch_mode = 6

Binary file not shown.

View File

@@ -1,4 +0,0 @@
#!/bin/sh
printf '\033c\033]0;%s\a' godot cpp template
base_path="$(dirname "$(realpath "$0")")"
"$base_path/godot cpp template.x86_64" "$@"

View File

@@ -21,5 +21,7 @@ config/icon="res://icon.svg"
[display]
display/window/vsync/vsync_mode=0
window/size/viewport_width=1920
window/size/viewport_height=1080

Binary file not shown.