Search found 1832 matches

by GyroVorbis
Fri Nov 03, 2023 12:49 am
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5642

Re: pl_mpegDC ported running but community help needed

So what was the issue with the playback crashing or slowing down after a certain amount of time? There's definitely a race condition in the implementation of timer_ms_gettime64(), and I'm working on a PR right now to fix it... but I guess that wasn't the problem here if it's working for Ian?
by GyroVorbis
Wed Nov 01, 2023 10:58 am
Forum: Programming Discussion
Topic: Timer precision
Replies: 13
Views: 1566

Re: Timer precision

I think you have the right final result, but the calculation is off. The clock counts the 50 MHz peripheral clock, divided by four (which would be 12.5 MHz), but it can be set to count on both the rising and falling edges of the clock, doubling it back up to 25 MHz. OH SHIT, you're right! Good call...
by GyroVorbis
Tue Oct 24, 2023 10:29 pm
Forum: Homebrew Software and Indie Games Discussion
Topic: My 3D game engine
Replies: 19
Views: 1191

Re: My 3D game engine

OoOo btw, I just noticed you're one of our C++ developers. What revision of the language are you using? You going pretty hard on the stdlib? We should have all the way up to partial support for C++23 in there with everything minus std::filesystem working. If you run into any issues, please don't hes...
by GyroVorbis
Tue Oct 24, 2023 1:10 pm
Forum: Programming Discussion
Topic: Is it possible to make std::future work?
Replies: 4
Views: 800

Re: Is it possible to make std::future work?

Sorry to bump this ass-ancient thread, but these forums serve largely as a repertoire of information for people searching, and I don't want someone who searches to wind up walking away from this with the wrong impression. Also Kazade is totally still around here. :lol: We now have BOTH atomics AND s...
by GyroVorbis
Tue Oct 24, 2023 3:16 am
Forum: Homebrew Software and Indie Games Discussion
Topic: My 3D game engine
Replies: 19
Views: 1191

Re: My 3D game engine

My opinion? That it looks amazing! Keep up the good work!
by GyroVorbis
Tue Oct 24, 2023 2:19 am
Forum: Programming Discussion
Topic: C17 and C++20 Standard Libraries
Replies: 0
Views: 811

C17 and C++20 Standard Libraries

I'm spending some time going through old topics looking for bugs to fix or bugfixes that maybe never made it into KOS, and I'm immediately seeing how much bullshit used to be going on with C++11 and up, especially in the realm of concurrency. I can confidently say that as of right now, if you have a...
by GyroVorbis
Tue Oct 24, 2023 2:05 am
Forum: Programming Discussion
Topic: What's the fastest implementation of the cross product on the SH4?
Replies: 5
Views: 1261

Re: What's the fastest implementation of the cross product on the SH4?

Anyone got anything better than this? KOS is missing any sort of cross product. If there are no objections, I'll PR this.
by GyroVorbis
Tue Oct 24, 2023 1:53 am
Forum: Programming Discussion
Topic: Timer precision
Replies: 13
Views: 1566

Re: Timer precision

Guys, ever since we found out that the performance counters were ill-suited to be used as persistent nanosecond timers, I've been on the hunt for giving us more resolution for timing and date/time. The truth is our current ms resolution is ass compared to what the standard libraries and other indie ...
by GyroVorbis
Tue Oct 24, 2023 1:41 am
Forum: Programming Discussion
Topic: Race condition in KOS timer_??_gettime*
Replies: 10
Views: 1734

Re: Race condition in KOS timer_??_gettime*

JESUS CHRIST. Did this fix not make it into KOS!? Been doing some timer work lately, and I don't actually see that we're even checking for overflow or are disabling interrupts here.
by GyroVorbis
Mon Oct 23, 2023 10:36 pm
Forum: Programming Discussion
Topic: Thanks, TapamN
Replies: 1
Views: 376

Re: Thanks, TapamN

:mrgreen: Yeah, thanks so much for even sharing that one with the community. Feel free to let us know if you have any other suggestions or complaints.

I'm slowly going back an finding old threads of yours with useful tidbits on how to improve KOS.
by GyroVorbis
Mon Oct 23, 2023 2:40 pm
Forum: Programming Discussion
Topic: SH4 Watchdog Timer Driver
Replies: 0
Views: 744

SH4 Watchdog Timer Driver

Hey guys, I was perusing the KOS codebase the other day, digging into some Timer stuff when I saw a comment stating "WDT is not supported," which I thought was kind of bullshit... So I wrote a driver for it which just got merged into KOS. I also included an example as well. :lol: https://g...
by GyroVorbis
Thu Oct 05, 2023 2:07 am
Forum: Programming Discussion
Topic: Antiruins engine
Replies: 4
Views: 474

Re: Antiruins engine

lerabot wrote: Fri Sep 22, 2023 12:39 pm The engine backend is written in C and is pre-compiled, meaning you don't need the Dreamcast toolchain to use this tool.
:o

That... is actually really freaking epic. I'm going to start telling everyone who doesn't know C or C++ but wants to start with DC development to start here.
by GyroVorbis
Wed Sep 20, 2023 2:57 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5642

Re: pl_mpegDC ported running but community help needed

We would be honored if you could add us to Kos-Ports! Please feel free to use it! Thank you so much on behalf of everyone! I think this will be an incredibly useful port in the future! Ah, but now that I think about it, I haven't explicitly reset the sound callback's static variable, so it might ca...
by GyroVorbis
Tue Sep 19, 2023 9:43 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5642

Re: pl_mpegDC ported running but community help needed

Wow, congratulations! This is fantastic work! I really don't know anything about media decoding, but I'm an engine/graphics programmer, and the fact FIPR got used here got me curious... and sure enough, I see what you did in the hot path with the linear algebra. Also see the strategic prefetching. V...
by GyroVorbis
Sat Sep 16, 2023 12:43 am
Forum: Programming Discussion
Topic: C11 and C++11 Atomics Support
Replies: 3
Views: 265

C11 and C++11 Atomics Support

I come bearing new language-level concurrency gifts... This time for C11 and C++11's atomics. This allows you to create thread-safe variables which can be loaded, stored, fetched, incremented, decremented, and generally operated on in a thread-safe manner. The primitive type atomics (64-bit and smal...
by GyroVorbis
Sat Sep 16, 2023 12:36 am
Forum: Programming Discussion
Topic: Use fs_read instead of fread
Replies: 3
Views: 362

Re: Use fs_read instead of fread

Thanks for this... currently digging into what we can do about making Newlib's default buffering behavior less... stupid. lol.
by GyroVorbis
Thu Aug 31, 2023 10:51 pm
Forum: Programming Discussion
Topic: pvrtex - PVR Texture Encoder
Replies: 14
Views: 1360

Re: pvrtex - PVR Texture Encoder

Oh shit. The original Texture Converter was written by my DC dev mentor, Tvspelsfreak. It's too bad he isn't around anymore, because I think he'd love to hear about this. Just wanted to also pay my respects and thank you kindly for sharing this with us! How was getting rid of Qt, btw? I was the one ...
by GyroVorbis
Sun Aug 20, 2023 11:47 pm
Forum: Programming Discussion
Topic: C/C++ Language-Level thread_local Storage Support
Replies: 0
Views: 580

C/C++ Language-Level thread_local Storage Support

Hey guys, I just finished up something I have been working on with Colton for a very, very long time, that I have always wanted to see working on Dreamcast with KOS. I just opened the PR, and it's still in review, but I wanted to let you guys know about it, because depending on your threading needs ...
by GyroVorbis
Thu Jul 13, 2023 6:49 am
Forum: Programming Discussion
Topic: Ultimate VMU Development Resource
Replies: 7
Views: 1063

Re: Ultimate VMU Development Resource

Oh snap, bucanero is back on DCEmulation! Good to see you, man! While we're sharing, I've finally FINALLY open-sourced the core of ElysianVMU, which is everything the emulator entails minus the UI front-end or platform-specific back-end stuff, so it can easily be ported to whatever platforms or incl...
by GyroVorbis
Tue Jun 06, 2023 2:40 am
Forum: Programming Discussion
Topic: DreamHAL - Dreamcast Hardware Abstraction Layer
Replies: 21
Views: 5292

Re: DreamHAL - Dreamcast Hardware Abstraction Layer

Neat. I actually talked about the -fno-builtin switch a bit when the GCC 12.2 port was originally released. https://dcemulation.org/phpBB/viewtopic.php?p=1059779#p1059779 https://dcemulation.org/phpBB/viewtopic.php?p=1059785#p1059785 Yo, had a quick question for you. Darc appears to have been the f...