Skip to content

Commit

Permalink
Fixed NTR-HR framerate throttling
Browse files Browse the repository at this point in the history
Resolved part of #29. Fixed a regression from 5eb57e9 and changed the default "QoS" to something more sensible.
  • Loading branch information
ChainSwordCS committed Feb 7, 2024
1 parent d77e9bd commit cfa9d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/chokistream/NTRClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static void sendInitPacket(String host, int port, DSScreen screen, int pr

args[0] = ((screen == DSScreen.TOP)? 1 : 0) << 8 | (priority % 256);
args[1] = quality;
args[2] = qos*2; // Nobody has any clue why, but NTR expects double the QoS value
args[2] = (qos*2) << 16; // Convert to the format expected by NTR and NTR-HR

try {
logger.log("Sending init packet", LogLevel.VERBOSE);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/chokistream/props/Prop.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class Prop<T> {
public static final Prop<Boolean> INTERLACE = new Prop<>("interlace", "Interlace?", false, Boolean.class);
public static final Prop<DSScreen> PRIORITYSCREEN = new Prop<>("priorityScreen", "Priority Screen", DSScreen.TOP, DSScreen.class);
public static final Prop<Integer> PRIORITYFACTOR = new Prop<>("priority", "Priority Factor", 8, Integer.class);
public static final Prop<Integer> QOS = new Prop<>("qos", "QoS", 26, Integer.class);
public static final Prop<Integer> QOS = new Prop<>("qos", "QoS", 16, Integer.class);
public static final Prop<Integer> CPUCAP = new Prop<>("cpuCap", "CPU Cap", 0, Integer.class);
public static final Prop<DSScreenBoth> REQSCREEN = new Prop<>("requestedScreen", "Requested Screen", DSScreenBoth.TOP, DSScreenBoth.class);
public static final Prop<Layout> LAYOUT = new Prop<>("layout", "Layout", Layout.SEPARATE, Layout.class);
Expand Down

0 comments on commit cfa9d97

Please sign in to comment.