▲ 20 r/Jersey

The first series of the Bergerac reboot is on iPlayer now, and showing on BBC2 weekly from 9pm tonight

Just in case some people still haven't got round to it yet. No, it's not quite as good as the old one. Yes, he spends a lot of time going up and down the Five Mile Road. Yes, a decent chunk of it was filmed in England (but that goes for the first series of the original too).

Just take it as its own thing. You might enjoy it.

I just hope they finally get a local pronunciation advisor for series 3...

reddit.com
u/wonkey_monkey — 1 day ago

Maybe everyone knows this already, but... one of the shots near the end of "I Shot an Arrow into the Air" appears to be the same/similar location as Mos Eisley from Star Wars (look at the background mountains)

Third time's the charm? Mods, just so you know, the requirement to post an (indeterminate) amount of body text along with an image means anyone using Old Reddit (which is the best Reddit) can't make any image post at all (because Old Reddit doesn't give you the option of body text with an image post)

u/wonkey_monkey — 7 days ago

How can I make my (My)SQL query faster?

I have a large table, T, which consists of rows of report data for a small number of companies (<10). Each time I get a report, I insert its rows into the table, along with a company_id and a datetime.

I have a view, V1, which returns each company_id along with the maximum datetime for that company_id (i.e. the key needed to select the latest report per company):

SELECT company_id,MAX(date) AS date FROM T GROUP BY company_id

This view is fast.

I have a second view, V2, which joins T to V1 in order to return all the rows for all the latest reports per company:

SELECT * FROM T JOIN V1 USING (company_id,date)

This view is really slow. It takes about 4 seconds to run the query, and about 16 seconds to fetch.

If, instead, I take the results of V1 and build myself a manual query like this:

SELECT * FROM T WHERE
(company_id=2	and date='2026-07-17 11:03:01') OR
(company_id=3	and date='2026-07-17 11:09:01') OR
(company_id=4	and date='2026-07-17 11:07:01') OR
(company_id=8	and date='2023-06-15 12:05:01') OR
(company_id=10	and date='2023-01-01 00:00:00') OR
(company_id=15	and date='2026-06-15 23:10:01') OR
(company_id=16	and date='2026-07-17 11:11:01')

then I get the results in a fraction of a second.

company_id and date are both indexed, and they also have a joint index.

I can only assume that V2 is fetching all the rows of T and only then filtering them via the JOIN to V1.

Is there a way to speed up this view?

reddit.com
u/wonkey_monkey — 9 days ago
▲ 2 r/vulkan

The first draw of my textured quad (after uploading texture to GPU) is coming out black. The RenderDoc thumbnail for the frame is also black, but Texture Viewer shows the expected result at all stages. Subsequent upload/draws work as expected. Any idea what might be going on?

I've written a fairly simple (so far) Windows application which displays video frames. The sequence it goes through to display a new frames is as follows:

  1. Upload frame image (8-bit RGBA)
  2. Compute shader to copy (in future it will do more complex things) upload image to display image (32-bit float RGBA)
  3. Generate display image mipmaps
  4. Begin render
  5. Draw 10 vertex triangle strip (drop shadow around video frame)
  6. Draw video frame as textured quad
  7. End render and present

It was working as expected earlier, but then I monkeyed around with it to simplify mipmap generation and image transitions, and now it's behaving oddly. Even more oddly, RenderDoc is giving confusing results, so I'm a bit stuck as to how to proceed.

First here's a screenshot of RenderDoc after capturing a few frames:

https://imgbox.com/iqJLePtE

The first couple of frames are just the empty grey that's displayed before a video file is opened.

After opening a video, instead of drawing the frame, it's drawing a fully black quad (the drop shadow is drawn fine). If I trigger another frame upload/draw, it comes out okay (last capture in that screenshot).

What's really unhelpful is that if I go into the capture for the bad frame, RenderDoc shows me this as the swapchain image:

https://imgbox.com/ABd5YEnX

which is what I was expecting the window to display. But it doesn't match the capture thumbnail (or the on-screen result from the application).

The Texture Viewer also shows the expected results in the compute pass, and the mipmap levels all look correct as well.

Does anyone have any idea why my first draw isn't working, or how I can go about diagnosing this?

I have validation turned on but no validation errors are shown.

PS It's just running on events instead of game loop, which is probably why the same swapchain image (162) is re-used each time.


Edit: I found the mistake. I was binding the pipeline and descriptor set before updating the descriptor set with its bindings 🤦‍♂️. So the first image fails, but when it comes to the second one, the descriptor set is now correct (and doesn't strictly need to be updated again; a future optimisation).

u/wonkey_monkey — 11 days ago

Windows 10, C++: How do I get continuous touch/gesture information (pans, zoom) from my laptop touchpad? Not sporadic WM_MOUSEWHEEL messages with no fine graining.

This one's driving me nuts.

You know how in Firefox, etc, you can do a two-finger pinch zoom (or pan/swipe) gesture on a trackpad, and you get a continuous accurate zoom fo the webpage? How can I get that kind of information into my C++ program?

I've come across things like "Interaction Context" and "Direct Manipulation" but it's confusing the hell out of me. Then there's stuff about WM_POINTER and WM_GESTURE messages, but I can't figure out if that's the right thing, or if they're deprecated, or what.

I just want my window to be told, somehow, about zoom and pan gestures. Or really just to be handed a scale and/or translation.

Could a kindly human being point me in the right direction?

reddit.com
u/wonkey_monkey — 1 month ago
▲ 5 r/vulkan

On my NVIDIA MX150, my triangle draws (yay!). But on Intel UHD 630, it doesn't. How do I work out what's not working?

So, long story short, but I'm finally at the point where I'm ready to draw a triangle. And I can, at least when I use my NVIDIA GPU (I have an Optimus laptop). But when I use the Intel GPU instead, the triangle doesn't draw.

In both cases, the background clears to the selected colour correctly. It's just that the triangle doesn't appear when using the Intel GPU.

I've tried RenderDoc - although I don't really know much about it - and everything seems identical in what it records between runs of the program with different GPUs selected - except for one thing.

On NVIDIA, the Mesh Viewer looks like this: https://i.ibb.co/jvpttBfM/image.png (hopefully you can see the wireframe triangle).

But on Intel, it looks like this: https://i.ibb.co/qM0pKvvj/image.png

I've got no idea what it means that the triangle is filled red, or what the blue square on the top vertex means.

I don't expect anyone to diagnose the exact problem - although that would be great if you happen to know - but can anyone help me with how I can investigate further? I don't really know what to try next, or what else I can do in RenderDoc to figure it out.

My shaders are simple, by the way - hardcoded vertices in the vertex shader, and returning a constant colour from the fragment shader. I haven't got as far as vertex buffers or attributes yet.

u/wonkey_monkey — 2 months ago
▲ 17 r/firefox

Is anyone catching Firefox "sleeping" a lot more since 150.0? UI takes a noticeable about of time to "wake" up or draw (Windows 10)

Lately - since the update to 150, I think - I've noticed Firefox seems to, I don't know, "fall asleep" a lot, or something. I don't really know how to describe it, but I see things like this (but only fairly rarely, not every time):

  • Pressing Ctrl-T and it takes half a second or more to actually open the tab, whereas before it was always instant
  • Start scrolling, but it takes around half a second to respond (then subsequently acts normally)
  • Open a minimised Window, and for half a second it's almost completely black, then it paints the page (a couple of weeks ago I was also catching it drawing old-style non-aero controls during this "wake up" period, but that seems to have been replaced with a blacked-out window now)

Has anyone else noticed anything like this?

I've got plenty of RAM and only have a few tabs open at a time. The only big thing that I can remember doing lately was disabling the Windows hypervisor so I could use VirtualBox, but I can't see how that would have affected things.

reddit.com
u/wonkey_monkey — 3 months ago

Since the upgrade to 150, my print dialogs, javascript dialogs, and "title" hover captions are all showing in a dark mode style (white on black or dark grey).

Is there any way to override this back to a light style?

I changed layout.css.prefers-color-scheme.content-override to 1 but with no effect.

reddit.com
u/wonkey_monkey — 3 months ago