|
|
|
|
|
by simonw
776 days ago
|
|
I've seen lots of people complain about this (the "ChatGPT is being lazy" bug, which OpenAI themselves said they would look at late last year) but I've not seen it myself. I wonder if it comes down to prompting style? What kind of prompts are you using that get these responses? |
|
OK, here's one. I was initially talking with it about how to best simulate restrictions from older consoles in an indie game. We chatted a bit how to most efficiently do paletted drawing on modern graphics architectures in various APIs (e.g. Vulkan, SDL). I got to asking it how exactly the SNES stored data in VRAM, and asked it to list all the PPU registers in the SNES and what they're used for. It gave me a correct answer (I double-checked). I then asked this:
> Can you write a header for a C++ file named PPU.hpp with methods to read and write these registers?
And it responded with this. Note that the response includes a couple "add more as needed" comments.
Here's a basic outline for PPU.hpp:
#ifndef PPU_HPP #define PPU_HPP
#include <cstdint>
class PPU { public: // Constructor and Destructor PPU(); ~PPU();
private: // Memory-mapped PPU registers // Assuming a representation of the PPU register space uint8_t ppuRegisters[/* size of the PPU register space */]; };#endif // PPU_HPP