Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.
2017-04-29Cleanup: unused includesCampbell Barton
2017-04-26Avoid race condition copying Scene for off-thread OpenGL image saveSergey Sharybin
2017-04-26Threading: Remove thread lock which seems uselessSergey Sharybin
Render data is never guarded by image drawe lock.
2017-03-07Task scheduler: Remove per-pool threads limitSergey Sharybin
This feature was adding extra complexity to task scheduling which required yet extra variables to be worried about to be modified in atomic manner, which resulted in following issues: - More complex code to maintain, which increases risks of something going wrong when we modify the code. - Extra barriers and/or locks during task scheduling, which causes extra threading overhead. - Unable to use some other implementation (such as TBB) even for the comparison tests. Notes about other changes. There are two places where we really had to use that limit. One of them is the single threaded dependency graph. This will now construct a single-threaded scheduler at evaluation time. This shouldn't be a problem because it only happens when using debugging command line arguments and the code simply don't run in regular Blender operation. The code seems a bit duplicated here across old and new depsgraph, but think it's OK since the old depsgraph is already gone in 2.8 branch and i don't see where else we might want to use such a single-threaded scheduler. When/if we'll want to do so, we can move it to a centralized single-threaded scheduler in threads.c. OpenGL render was a bit more tricky to port, but basically we are using conditional variables to wait background thread to do all the job.
2017-03-03Update comment which was remained in an old placeSergey Sharybin
2017-03-01Cleanup: code-style, duplicate headerCampbell Barton
2017-02-15Fix T50542: Wrong metadata frame when using OpenGL renderSergey Sharybin
2016-11-16Fix T50051: Avoid crash when render grease pencil from VSEAntonioya
The renderpasses for grease pencil are not necessary when render from sequencer. This fix solves the GPF but we need to rethink the complete render process for grease pencil and integrate better in the render and composition workflow. Thanks to Dalai Felinto por helping in the debug and fixing of the problem.
2016-11-12Fix T49996: VSE opengl render crash with grease pencil if current frame is ↵Antonioya
empty If the opengl render with grease pencil is run from VSE with the current frame outside visible frames, the render pass is wrong and the render must be canceled because nothing to render. Related to #T49975
2016-11-10Fix Grease Pencil render in VSE crashes when no strips (#T49975)Dalai Felinto
Solution as suggested by Sergey Sharybin. Initial debugging by Antonio Vazquez.
2016-10-14Prevent crash after OpenGL rendering animation to images.Sybren A. Stüvel
2016-10-12Fix T49622: Grease pencil not rendering out of VSESergey Sharybin
2016-10-10OpenGL animation: Fix stupid mistake form previous commitSergey Sharybin
Flagging of pool to cancel was done in the wrong place, making last frames missing in the final video.
2016-10-10OpenGL render: Fix missing file output after pressing EscSergey Sharybin
Apparently, the whole G.is_break is not used by OpenGL render, meaning this flag will not be clear before running the operator. This was causing missing file output after pressing Esc once for the rest of Blender session.
2016-10-07OpenGL render: Limit number of scheduled frames for writeSergey Sharybin
Previously if the rendering is much faster than saving (for example, when transcoding stuff via VSE) it was possible to have 100s of frames in memory. This isn't ideal because of limited amount of RAM, so need to have some sort of limit. This is exactly what is implemented in this commit.
2016-10-07OpenGL render: Fix non-deterministic order of frame writes for moviesSergey Sharybin
By the design of task scheduler it was possible that tasks from somewhere in the middle of scheduled list will be handled first. For example, one thread might be iterating over the scheduled list and ignore tasks because there is other thread is working on task from the same pool. However, if that other thread finishes task before iteration is over current thread will pick up task from somewhere in in the middle of the list. This isn't a problem in general case, but for movie rendering we do need to have strict order of frames.
2016-10-07OpenGL: Don't write frames when rendering was canceledSergey Sharybin
2016-10-07OpenGL: Do not schedule new frames for write if error happensSergey Sharybin
Also do not attempt to write any already scheduled frames.
2016-09-22Fix T49422: Metadata not showing in OpenGL rendersSergey Sharybin
Own regression since recent optimization.
2016-09-17OpenGL render: Bugfix (unreported) after ↵Thomas Beck
rB6f92604e539b2114763150fb1ace60d28e59a889 Crashes occured immediately when clicking on "OpenGL render image" because there was only a task pool created previously when it was an animation. Solved it by introducing a variable is_animation to the openglrender and omitting the task_pool call when it's no animation. @sergey: Please check my changes, moved the pool_ok and the lock into the is_animation clause.
2016-09-16OpenGL render: Move file writing to a separate threadSergey Sharybin
The idea is to have a dedicated thread which is responsive for all the file writing to a separate thread, so slow disk will not slow down OpenGL itself. Gives really nice speedup around 1.5x when exporting barber shop layout file to h264 video.
2016-09-15Fix mistake in previous commitSergey Sharybin
Was copying things in other way around and was not performing proper color space conversion.
2016-09-15OpenGL render: Avoid byte-float-byte roundtripSergey Sharybin
It was annoyingly slow to do roundtrip from byte OpenGL render to float render result and back to byte image format (which is used in 99% of cases for the OpenGL previews), Now we use render result's rect32 to store render result which is already supposed to be in the display space. Gives about 30% speed improvement for OpenGL previews here.
2016-09-15OpenGL render: Add developer option to easily enable time informationSergey Sharybin
2016-09-15OpenGL render: Skip GP passes if viewport has GP visibility disabledSergey Sharybin
2016-08-04Grease Pencil v2 BranchAntonio Vazquez
Improve current Grease Pencil in order to get a better 2D animation tool. More info in WIKI pages: https://wiki.blender.org/index.php/User:Antoniov Reviewed By: Severin, aligorith, campbellbarton Patch by @antoniov, with edits by @Severin. Differential Revision: https://developer.blender.org/D2115
2016-03-31Fix T47985: VSE GL-render scene strip hangsCampbell Barton
Regression in d5f1b9c22, threading deadlock rendering a scene from the OpenGL preview.
2016-02-01Fix wrong information used for stamp when "Strip Metadata" is usedSergey Sharybin
Such configuration used to cause quite confusing situation when stamp will use actual scene's statistics but metadata from strip will be used for the saved file (basically, causing different information stamped and saved as metadata). Don't think it was desired behavior and it's something what artists here in the studio wants to be fixed.
2015-12-08OpenGL: split off framebuffer, shader and texture code into separate files.Brecht Van Lommel
2015-11-30Fix T38245: render slot getting lost when switching slots while compositing.Brecht Van Lommel
2015-11-23Cleanup: shadowing (editors)Campbell Barton
2015-11-19Cleanup: redundant 'break', minor editsCampbell Barton
2015-11-17Fix T46793: VSE OpenGL renderer crashes when using grease pencilSergey Sharybin
Own regression in recent speedup commit.
2015-11-16Speedup OpenGL sequencer animation renderingSergey Sharybin
The idea is to avoid having roundtrip from byte to float and back to byte buffer and use render result's byte buffer to store result of sequencer rendering. This actually matches to what regular render pipeline is doing and this gives around 2-3 times speedup of sequencer export on a simple scenes.
2015-11-16Remove unused arguments from RE_WriteRenderViewsMovie()Sergey Sharybin
2015-11-11OpenGL Render: Support full-sample Anti-AliasingCampbell Barton
This brings back old (slower), higher quality method. Useful since graphics cards often use a faster MSAA which only oversamples edges.
2015-11-11Cleanup: GL Render (simplify internal logic)Campbell Barton
Reduce code-paths so improvements to 3D view render apply to sequencer too.
2015-10-23Cleanup: use int for view_id's & view countCampbell Barton
`size_t` is useful for memory sizes or offsets, the number of views wont realistically exceed an int.
2015-10-15Fix T46223: multiview image sequences crashing.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D1549
2015-10-14Support for multi-sample sequencer GL renderCampbell Barton
OpenGL sequencer render now uses a single fbo for all rendering.
2015-10-14Support for multi-sample off-screen buffersCampbell Barton
Replaces much slower manual accumulation buffer which simply did multiple renders. Needs OpenGL3.2, otherwise multi-sample is disabled.
2015-10-06WM: Fix crash when a new window can't be createdCampbell Barton
Report an error instead of crashing if a new window can't be created (typically caused by bad drivers).
2015-09-22Show error when unsupported movie format usedCampbell Barton
Was silently failing.
2015-09-14Revert "Fix crash in opengl render caused..."Campbell Barton
This reverts commit d64b1221c67846bb954855a19c8dd093b83adc8e. While this prevents the crash, offscreen renders still aren't working right.
2015-09-14Fix crash in opengl render caused by gfx being blacklisted forJoe Eagar
non-power-of-2 texture support. Note that all I did was pass the correct width/height into glReadPixels; the result may not be the same as if non2 textures were enabled.
2015-07-01Sequencer metadata:Antony Riakiotakis
Add option to render strip metadata to final result, bypassing current scene metadata.
2015-05-07Fix crash when rendering opengl from sequencer.Antony Riakiotakis
2015-05-06OpenGL render: Update metadata as before, for every frame written to aAntony Riakiotakis
file, since we need the updated times and frames. This was lost during stamp code refactoring. The refactoring moved the stamp when render is initialized so we would be guaranteed to have correct cameras even when saving render stills at a later time (and even if cameras were changed). For regular render this would work since render init takes care of stamp, but for openGL rendering we need to do this manually. Still not 100% correct, does not apply multiview cameras to metadata
2015-05-06Quick patch-up for opengl render metadata.Antony Riakiotakis
Camera here is incorrect for multiview (as is in real multiview render) but at least it works now.