Repository navigation
Open
Description
From a read-only audit of the core code (src/lib, src/bin, src/plugins; vendored code excluded). Each item was checked against the code. Items already fixed are in #175, #176, #177 and #178.
Effort: S = under a day, M = a few days, L = a week or more.
Do first
- Turn deprecation warnings back on (S, then M to fix what appears).
cmake/defaults/cxx_clang_defaults.cmakesets-Wno-deprecated-declarationsfor every clang target, which hides deprecation warnings from Qt, AppKit/CGL,<codecvt>and the Python C API on macOS. Narrow it, and addQT_WARN_DEPRECATED_UP_TO.
Deprecated APIs
- Python C API (S–M).
PyInterface.cpp:Py_InitializeEx+PySys_SetArgvEx+PyEval_InitThreads. Move toPyConfig/Py_InitializeFromConfig. Also free thePy_DecodeLocaleargv. Inpy-interp/main.cpp,Py_SetProgramNameand aPyConfigthat is built but never used.PyModule_AddObject→PyModule_AddObjectRef. -
<codecvt>/wstring_convert(S). Deprecated in C++17, removed in C++26. Replace withMultiByteToWideChar/WideCharToMultiByte(follows fix(windows): convert UTF-8 paths to UTF-16, not UCS-2 #178). - C++17 leftovers (S).
throw()specs in Mu,stl_ext,TwkContainer→noexcept. Update the vendored utfcpp copies, which derive fromstd::iterator. Replace the OpenCL device VLA inImageRenderer.cppwith astd::vector. - Qt 6 (S).
QMouseEvent::pos()inRvBottomViewToolBar.cppand utvprofVisMainWindow.cpp→position().canConvert(QVariant::String)inRvFileDialog.cpp→canConvert<QString>(). 28 string-basedSIGNAL(stateChanged(int))connects:QCheckBox::stateChangedis deprecated in Qt 6.9, and string connects fail silently, so switch to pointer-to-member connects. - Drop CY2023 / Qt 5 (M). Still a supported build option, with 31
RV_VFX_CY2023branches in core plus MuQt5. Removing it deletes the remaining Qt 5 code paths. - macOS dead code (S).
CGDesktopVideoDevice.cppisn't compiled, but its header is still included, and it usesCGDisplayIOServicePort/CGDisplayCapture/CGLSetFullScreenOnDisplay.DisplayLink(CVDisplayLink, deprecated in macOS 15) is created for every document but never started, whileuseExternalVSyncTiming(true)turns off Session's own vsync bookkeeping. Either drop both, or port toCADisplayLink.DarwinBundlereports the macOS version as10.(darwin-4), e.g. "10.23" on macOS 27.
- OpenCL histogram (M–L). OpenCL has been deprecated on macOS since 10.14, and CL/GL sharing assumes a current CGL context. Move it to a GLSL compute or Metal kernel.
- Boost.Thread → std (M–L). About 25 core files. Also drop
<boost/asio.hpp>, whichVideoDevice.cppincludes only forhost_name(). - FFmpeg debug code (S). The
DBL()debug block inMovieFFMpeg.cppuses the removedAVFrame::pkt_duration. It's compiled out today, but turning on debug output breaks the build.
Stability
- GL program caches (M).
PaintCommand.cppandBasicGLProgram.cppkeep process-wide static program caches that aren't keyed by GL context or share group and aren't locked. Stale IDs can be used after a context is recreated, or on unshared output/presentation contexts. - NSAutoreleasePool (S).
IONSImage.mmskips[pool release]on its throw paths.DarwinBundlekeeps a pool alive for the app's whole lifetime. Convert both to@autoreleasepool. -
IPGraph::evaluate(S). OnCacheFullExc, the retry swallows every exception and returnsEvalBufferNeedsRefillwith a possibly null image. -
MovieFFMpeg(S).audioFrame->ch_layout = …is a shallow copy. Useav_channel_layout_copy.
Performance
- Hardware decode copies (M). On hardware decode, each frame allocates two AVFrames and a new FrameBuffer, then copies twice (hw transfer, then copy/sws). Reuse the frames per track, pool the FrameBuffers, and transfer straight into FrameBuffer planes where the layouts match.
- OpenCL histogram buffers (S). Buffers and CL images are created and destroyed on every render (there's an existing TODO). Cache them by size.
- Windows cache-thread probe (S). The caching thread allocates and frees a 64 MB probe block on every iteration, a 32-bit-era workaround. Remove it on x64.
Checked and clean
- FFmpeg: no removed APIs (
ch_layout, send/receive andget_supported_configare all current). - OCIO and OIIO: current 2.x /
unique_ptrAPIs. - Python: no removed stdlib modules.
- C strings and threads: no unsafe C string or temp-file functions in non-vendored C++, and no detached threads.
Metadata
Metadata
Assignees
Labels
No labels
Activity