We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
longtran2904
Before disabling line buffering, I want to know what happens if the user's input is bigger than my …
»
Mārtiņš Možeiko
Simply disable line buffering on input handle and do buffering yourself. Have whatever size buffer…
»
longtran2904
So let's say my internal buffer size was 4 bytes, and the user types something like 8 bytes and pr…
»
Mārtiņš Možeiko
Ah, you're right. It has special behavior when it is reading from console. Just be aware that user…
»
longtran2904
ReadFile will not stop at \r\n. It will read up to N bytes you ask, or stop earlier if there is no…
»
Mārtiņš Možeiko
ReadFile will not stop at \r\n. It will read up to N bytes you ask, or stop earlier if there is no…
»
ssoher
🥳
»
Simon Anciaux
Thanks.
»
longtran2904
The ReadFile function takes in a buffer, and usually, when I actually read a file I would know the…
»
x13pixels
RemedyBG 0.4.0.3 is now available for download on itch.io and includes the following improvements …
»
x13pixels
Evaluating an expression and returning the result is possible but is not something that is ready t…
»
x13pixels
I'll make a note to take a look and see what this would entail.
»
Mārtiņš Možeiko
I'm not sure if you can set codepage to utf-16. I think it is only relevant for 8-bit code pages a…
»
longtran2904
For ascii only it will work fine, no problems there. What if the terminal expected UTF-16? Isn't U…
»
Mārtiņš Možeiko
If you output wrong encoding than user expects, they will see garbage (or you'll receive garbage i…
»
longtran2904
If you output utf8 bytes, then the output will receive utf8 bytes. If you output utf16 bytes, then…
»
Mārtiņš Možeiko
ReadFile/WriteFile is fine if you want to output raw bytes - so whatever you'll write, it will be …
»
longtran2904
What is the proper way to handle input/output from/to the console in Win32? There are a lot of fun…
»
longtran2904
Yes, that is how I normally implement my page allocator before I know about ASAN. Does ASAN also i…
»
ratchetfreak
every allocation gets put in its own page with surrounding guard pages to catch buffer overflows A…
»
longtran2904
I'm unsure how ASAN costs more memory than a page allocator. Because a shadow byte accounts for 8 …
»
Mārtiņš Možeiko
Yes, enabling ASAN makes your code slower. And requires a lot more memory.See
»
longtran2904
Before using ASAN, what I usually do to "poison" a region of memory is to have an end-of-page allo…
»
Leo
I see. That sounds like a robust approach. In the case of a path tracer in fragment/compute shader…
»
ratchetfreak
The only way I can see that working is by doing double buffering on the slow thing. That way you c…
»
Mārtiņš Možeiko
Minidump debugging. Symbol server support. Custom pdb locations (I think remedy added this only ve…
»
Leo
Let's say I'm path tracing a fairly complex scene, which results in a low framerate, but I would a…
»
longtran2904
I pretty much use only VS debugger because other debuggers are lacking too many features I use. Ca…
»
Mārtiņš Možeiko
I pretty much use only VS debugger because other debuggers are lacking too many features I use. If…
»
longtran2904
F11 will step into ASAN internals, but you can disable that with /JMC compiler argument. It's beco…
»