Jim Drygiannakis

3.6K posts

Jim Drygiannakis banner
Jim Drygiannakis

Jim Drygiannakis

@jdryg

Nothing to see here. Move on. There are other more interesting accounts to follow out there.

Athens, Greece Katılım Ağustos 2010
361 Takip Edilen524 Takipçiler
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@sparsevoxel Happy to help! I've updated the gist to include the USBDescBuilder functions in case you don't have the missing descriptors at hand :)
English
0
0
0
24
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@sparsevoxel This is used in an HID + CDC device. Enumerate's correctly on Windows and (afair) works :) The repo isn't public. If you need something else referenced in the file but not shown, please tell me and I'll update the gist.
English
0
0
0
53
Jim Drygiannakis retweetledi
Aurimas Gasiulis
Aurimas Gasiulis@aurimasgasiulis·
Today I’m releasing the source code of my new experiment - multi-threaded, CPU-based vector graphics rasterizer - github.com/aurimasg/blaze
English
2
30
166
23.3K
Jim Drygiannakis
Jim Drygiannakis@jdryg·
Triangle Rasterization - Part 2: More optimizations cohost.org/jdryg/post/625… TLDR: Managed to save ~0.4ms (1.34ms/frame -> 0.94ms/frame) using only SSE2 and ~0.5ms (0.82ms/frame) using SSSE3/SSE4.1
Jim Drygiannakis tweet media
English
0
3
24
3K
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@sparsevoxel I remember doing something similar for my RISCVEmu project a long time ago: #L162" target="_blank" rel="nofollow noopener">github.com/jdryg/RISCVEmu… My code is a bit more complicated than yours but it does basically the same things (load program headers into memory and jump to the entry point).
English
0
0
0
0
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@sparsevoxel @ChristerEricson Unfortunately he uses Altium which isn't free but apparently makes things a lot easier for such designs. IIRC he demostrates how to do the same calcs for KiCad using external tools in older videos.
English
0
0
0
0
🙊Christer Ericson
🙊Christer Ericson@ChristerEricson·
@sparsevoxel At what frequency do you have to worry about same trace lengths, and to what precision? Do you also have to worry about trace width/spacing/impedance?
English
1
0
3
0
Бранимир Караџић
@jdryg Hm, check there is similar API where you can specify wait timeout for messages instead peeking, that would block if there are no messages.
English
2
0
0
0
Jim Drygiannakis
Jim Drygiannakis@jdryg·
What's the proper way to handle rendering on minimized window? Render to a 1x1 framebuffer and swap/vsync as you normally would? Skip rendering completely and Sleep(16)? Something else?
English
3
0
0
0
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@bkaradzic I thought all WaitXXX Win32 functions use the same timer as Sleep(), so is there really any benefit over just Sleep(1)? Only waitable timers can be high-res so they are a bit different in this regard.
English
0
0
0
0
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@bkaradzic Didn't know about WaitForInputIdle(). I'll try it. Looking at the docs, it doesn't seem to do what I'm looking for, unless I'm missing something.
Jim Drygiannakis tweet media
English
1
0
0
0
Бранимир Караџић
@jdryg You can switch your windows message pump from looping with PeekMessageW to WaitForInputIdle with timeout when app is minimized, and rendering is skipped.
English
1
0
10
0
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@kinjalkishor That's exactly what I currently have. I guess it should be enough. If my update() func depends on the rate it's called, I should fix that instead of complicating things.
English
2
0
1
0
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@bkaradzic Only really possible with a high resolution waitable timer because Sleep()'s resolution is fixed to ~15ms.
English
0
0
1
0
Jim Drygiannakis
Jim Drygiannakis@jdryg·
@bkaradzic But I just read the post I linked on Win32 timer resolutions, and I was wondering if it's better to measure the amount of time update() takes and only "sleep" for the rest of the 60Hz frame.
English
2
0
0
0