Code Monkey home page Code Monkey logo

Comments (6)

nattthebear avatar nattthebear commented on June 21, 2024 1

I can't make sense of this issue. You refer to two different concepts here:

  1. Whether inputs were polled in a frame
  2. "lag"; in quotes with no further elaboration

What is the second one supposed to mean? Can you provide a complete description of the problem, understandable by anyone who was not part of the previous discussion?

from bizhawk.

vadosnaprimer avatar vadosnaprimer commented on June 21, 2024 1

polling is an accidental [sic] thing

What I meant there, the concept of input polling is only a part of the lag concept accidentally: because it happened to be a common indication of gameplay lag in early consoles.

from bizhawk.

YoshiRulz avatar YoshiRulz commented on June 21, 2024

By "lag per se" I mean when the virtual system is overloaded, which can mean video processing or game logic is delayed.

<feos> not all games lag gameplay and delay polling at the same time. what tasers need to know is when the game lags gameplay. whether it polls on that frame or not is useful but not critical
<CasualPokePlayer> some cores implement (at least a mode) where lag frames dont represent non-polling frames at all, but rather some other metric for lag ("gpu lag")
<CasualPokePlayer> 3DS just only does this since it's completely useless to track non-polling frames due to how that works (the console just checks inputs at a constant rate)
<CasualPokePlayer> GC/Wii are similar in that regard (completely useless to track non-polling frames when it's always polled at a constant rate)

(And Mupen64Plus has its alternate lag mode.)
Later:

<feos> polling is an accidental [sic] thing. if gameplay continues while no buttons are polled, it's mostly fine. if it's the other way around, it's worse
[snip]
<feos> lag is when the char stops moving (and most of the time the entire game freezes), which is why it's bad

from bizhawk.

CasualPokePlayer avatar CasualPokePlayer commented on June 21, 2024

Even for consoles where input polling can be used as a good indicator of gameplay lag, simply trying to consider all input polling might end up being useless. Take the DS, where only its ARM9 CPU (which executes game code) doing input polls is anything useful for lag, if you look at the ARM7 CPU (which executes stock Nintendo code for any licensed game) polling the touch screen, you end up getting no "lag frames" since the stock Nintendo code just polls continously multiple times every frame.

from bizhawk.

nattthebear avatar nattthebear commented on June 21, 2024

Thanks for the context. I largely agree with what's been said above, but to sum up and clarify my viewpoints:

  • "Inputs were not observed" will always be useful for TASing. After all, if the input won't be observed, then there's no point in changing it at this time, and good knowledge of this is very helpful for quickly constructing optimal input sequences, both for humans and bots. Usually, we can automatically infer the value of this flag from the application's behavior (whether it read certain ports, etc), but there are situations where this fails, both due to system quirks such as the NDS touchpad above, as well as application logic oddities.
  • "Application logic ran slower than nominal" is useful, but in the past we haven't done much with it because on most systems, it can't be inferred automatically. Application code can react to timing interrupts and structure its main loop in an endless number of different ways. With some knowledge about program structure and some system-specific assumptions, sometimes you can do better.

I support splitting out to two flags so long as both are overrideable from lua or other scripting interfaces, and so long as there's enough community interest to actually build out "Application logic ran slower than nominal" detection for common use cases.

from bizhawk.

CasualPokePlayer avatar CasualPokePlayer commented on June 21, 2024

There is also a matter of what inputs were not observed. In theory, you could create way more bits to represent this, perhaps 1 bit per button (or per controller?). This could be fairly useful in say linked consoles, or that NDS example, possibly also with consoles with multiple controllers. It would be much more complex however, and somewhat less useful if we just have these different lag definitions used simultaneously.

from bizhawk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.