Skip to content

Commit

Permalink
修复多线程渲染导致的窗口缩放崩溃问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwdit committed Jul 1, 2022
1 parent 6cb8b13 commit ea0d75c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion libs/core/core.gd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class_name RainyBotCore


const VERSION:String = "V2.0-RC-8"
const VERSION:String = "V2.0-RC-8-Patch-1"


static func start()->void:
Expand Down
1 change: 0 additions & 1 deletion libs/core/modules/gif_exporter/converter.gd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func _convert(image: Image, colors: Array) -> PackedByteArray:
RenderingServer.canvas_item_set_material(ci_rid, mat_rid)

RenderingServer.viewport_set_update_mode(vp, RenderingServer.VIEWPORT_UPDATE_ONCE)
RenderingServer.force_draw(false)
image = RenderingServer.texture_2d_get(RenderingServer.viewport_get_texture(vp))

RenderingServer.free_rid(vp)
Expand Down
1 change: 0 additions & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ locale/translations=PackedStringArray("res://libs/gui/resources/lang/zh_CN.po")

[rendering]

driver/threads/thread_model=2
2d/snap/snap_2d_transforms_to_pixel=true
2d/snap/snap_2d_vertices_to_pixel=true
batching/options/use_batching=true

0 comments on commit ea0d75c

Please sign in to comment.