Comments (7)
Ping @davidgfnet and @uyjulian to be the most experts on this area
from ps2sdk.
I have tried reverting https://github.com/ps2dev/ps2sdk/pull/470/commits and it looks to works fine, so it must be an issue introduced there:
Bigger diff: 22, requested: 10395, got: 10417
from ps2sdk.
nanosleep says https://man7.org/linux/man-pages/man2/nanosleep.2.html
nanosleep() suspends the execution of the calling thread until either at least the time specified in
*req
has elapsed
So this would be conformant behavior either way, but more accuracy is better
from ps2sdk.
nanosleep says https://man7.org/linux/man-pages/man2/nanosleep.2.html
nanosleep() suspends the execution of the calling thread until either at least the time specified in
*req
has elapsedSo this would be conformant behavior either way, but more accuracy is better
While being technically correct I have never seen anything like this in any Posix compatible system under low load. I don't have the proceedings anymore, but I think this provision was added to cover for systems under load where a timely scheduling after the timer expires isn't guaranteed.
from ps2sdk.
Seems like a regression to me.
Just for sanity checking it would be great to validate that clock_gettime is not returning garbage every now and then (it likely won't but better safe than sorry!)
from ps2sdk.
Seems like a regression to me. Just for sanity checking it would be great to validate that clock_gettime is not returning garbage every now and then (it likely won't but better safe than sorry!)
I have specifically checked that, and it looks to work fine, as I did a similar example, this time instead of putting a usleep
in the middle, I put a function to generate the first X prime numbers, and the values look to be right too.
from ps2sdk.
I inspected the code and I think it might be related to the timer overflow handling. That ApplyOverflow and its being called several times in the timer irq looks suspicious to me.
from ps2sdk.
Related Issues (20)
- [idea]: if MX4SIO driver is stored on a `sio/` folder. why not move sio2man and similar stuff there too? HOT 8
- Option argument for sceUsbdTransferPipe()? HOT 2
- `fileXio` somehow blocks `IOP` to reset
- Using docker, getting errors HOT 2
- Playstation2 read/write speed test HOT 1
- kr_ps2: possible typo HOT 1
- NETMAN: Why the readme file for this module is at repository root? HOT 1
- How do I use ps2adpcm tool HOT 1
- MIPTBP1 and 2 incorrect bitmask HOT 2
- Why not add support for GB2312 encoding HOT 2
- cdrom filepaths broken by new changes to libcglue's __path_absolute() function HOT 1
- VU1 sample syncronization problem HOT 3
- The ps2dev sdk ships an incomplete opusfile install HOT 4
- [PROPOSAL]: dispatch IRX modules built by debug PS2SDK into the release section HOT 2
- shortcomings in audsrv and upsampling HOT 4
- [DISCUSSION]: PPC toolchain on PS2SDK. Do we want it? HOT 4
- [MCMAN] different return value compared to sce modules. why? HOT 2
- ps2sdk now only works on latest pcsx2 HOT 5
- ELF loader broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps2sdk.