璀境石

Results 55 comments of 璀境石

I think we should not change DXGI window event handler in backend because some application need these feature and handle it correctly.

Hello, thank you for finding this problem and it gave me a lot of inspiration. But, why the linear space -> gamma space curve is pow(x, 1.0 / 1.8) instead...

Some Helpful References: * [For best performance, use DXGI flip model](https://docs.microsoft.com/en-us/windows/win32/direct3ddxgi/for-best-performance--use-dxgi-flip-model) * [Reduce latency with DXGI 1.3 swap chains](https://docs.microsoft.com/en-us/windows/uwp/gaming/reduce-latency-with-dxgi-1-3-swap-chains) * [Optimize input latency for Universal Windows Platform (UWP) DirectX games](https://docs.microsoft.com/en-us/windows/uwp/gaming/optimize-performance-for-windows-store-direct3d-11-apps-with-coredispatcher)...

I notice some problem 1. DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT requied Windows 8.1 but you did't provide fallback code path 2. DXGI_SWAP_EFFECT_FLIP_DISCARD required Windows 10 but you did't provide fallback code path 3. NUM_FRAMES_IN_FLIGHT...

> As a quick fix, you can edit your local kit using this command: "`Edit User-Local CMake Kits`" in which you can change the path to the compiler. My solution...

> I am very surprised the fps is so low. Are you running on a very old computer? I would expect to get 1000+ fps on most machines. Printing to...

Reorganized the code. Now the newly inserted code is easier to recognize. However, some duplicate codes have also been generated, and I am still thinking about how to solve it.

Test build system: CMakeLists.txt ```cmake cmake_minimum_required(VERSION 3.24) project(qoi) add_library(libqoi) if(MSVC) target_compile_options(libqoi PRIVATE "/utf-8" "/W4" ) else() target_compile_options(libqoi PRIVATE "-Wall" "-Wextra" "-Wpedantic" "-Werror" ) endif() if(WIN32) target_compile_definitions(libqoi PRIVATE _CRT_SECURE_NO_WARNINGS ) endif()...

可算把diff解决了,你保存文件的时候记得保存换行符为CRLF样式(Windows),不然差异对比一开全是有差异的