decoupled the winIDs from the telemetry data

hell yeah, brother!
This commit is contained in:
2026-09-17 23:55:54 +01:00
parent 1ac4ab1865
commit dda300ce6b
8 changed files with 164 additions and 91 deletions
+2 -2
View File
@@ -125,8 +125,8 @@ func (b *BeamNG) Subscribe(requestFields map[int16]telemetry.FieldID) {
// we will add their dependencies and the primitives to a slice
pendingBinds := make([]telemetry.FieldID, telemetry.MaxFields)
for winID, id := range requestFields {
b.data.Values[id].IDs = append(b.data.Values[id].IDs, winID)
for _, id := range requestFields {
// b.data.Values[id].IDs = append(b.data.Values[id].IDs, winID)
switch id {
case telemetry.RPMStateColour:
+2 -2
View File
@@ -229,8 +229,8 @@ func (i *IRacing) Subscribe(requestFields map[int16]telemetry.FieldID) {
// we will add their dependencies and the primitives to a slice
pendingBinds := make([]telemetry.FieldID, 0, telemetry.MaxFields)
for winID, id := range requestFields {
i.data.Values[id].IDs = append(i.data.Values[id].IDs, winID)
for _, id := range requestFields {
// i.data.Values[id].IDs = append(i.data.Values[id].IDs, winID)
switch id {
case telemetry.RPMStateColour: