Sublime Forum

Sublime window flashing issues (Windows, 3170)

#1

It’s an irritation really as Sublime’s UI is normally so smooth and nice. When first running Sublime, the window briefly ‘flashes’ before being drawn. Didn’t do this at build 3143 and not sure which dev build this might have crept in. Opening settings window also flashes. Opening new windows or projects within them doesn’t flash. Upgraded from 3143 and using Soda Dark 3 theme with Base16 Tomorrow Night colour scheme.

Just an annoyance but anyone else notice this?

0 Likes

#2

A copy of your console may be helpful in looking into this.

0 Likes

#3

Here you go Will. Thanks :slight_smile:

DPI mode: system
DPI scale: 1
startup, version: 3170 windows x64 channel: stable
executable: /C/Users/qgates/sublime/sublime_text.exe
working dir: /C/Users/qgates/sublime
packages path: /C/Users/qgates/sublime/Data/Packages
state path: /C/Users/qgates/sublime/Data/Local
zip path: /C/Users/qgates/sublime/Packages
zip path: /C/Users/qgates/sublime/Data/Installed Packages
ignored_packages: ["ColorSchemeEditor-master", "LiveStyle", "Vintage", "WordCount"]
Errors parsing theme:
icon_file_type is missing layer0.opacity, setting to 1.0 for backwards compatibility
icon_folder is missing layer0.opacity, setting to 1.0 for backwards compatibility
icon_folder_loading is missing layer0.opacity, setting to 1.0 for backwards compatibility
pre session restore time: 0.140779
startup time: 0.185779
first paint time: 0.186779
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-pygments
reloading plugin 0_package_control_loader.50-markupsafe
reloading plugin 0_package_control_loader.50-pymdownx
reloading plugin 0_package_control_loader.50-python-markdown
reloading plugin 0_package_control_loader.50-pyyaml
reloading plugin 0_package_control_loader.51-python-jinja2
reloading plugin 0_package_control_loader.55-mdpopups
reloading plugin AdvancedNewFile.AdvancedNewFile
reloading plugin Emmet.emmet-plugin
reloading plugin ExportHtml.ExportBbcode
Unable to fetch update url contents
reloading plugin ExportHtml.ExportHtml
reloading plugin ExportHtml.HtmlAnnotations
reloading plugin ExportHtml.support
reloading plugin FileDiffs.file_diffs
reloading plugin FindKeyConflicts.find_key_conflicts
reloading plugin Markdown Preview.helper
reloading plugin Markdown Preview.markdown_settings
reloading plugin Markdown Preview.markdown_wrapper
reloading plugin Markdown Preview.MarkdownPreview
reloading plugin Origami.origami
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin ScopeHunter.scope_hunter
reloading plugin ScopeHunter.scope_hunter_notify
reloading plugin ScopeHunter.support
reloading plugin SideBarEnhancements.SideBar
reloading plugin SideBarEnhancements.SideBarAPI
reloading plugin SideBarEnhancements.SideBarDefaultDisable
reloading plugin StripHTML.striphtml
reloading plugin Sync View Scroll.syncscroll
reloading plugin SCMS.SCMS
reloading plugin SFTP.SFTP
reloading plugin Straight Quotes.Straight Quotes
reloading plugin User.css_completions
reloading plugin User.GitRulers
reloading plugin User.MagicOpen
reloading plugin User.symbol
reloading plugin User.ToggleCursorSelection
plugins loaded
syncScroll starting
Emmet: No need to update PyV8
Package Control: Skipping automatic upgrade, last run at 2018-05-10 18:12:54, next run at 2018-05-10 19:12:54 or after
0 Likes

#4

The first paint time is pretty quick, so that seems good.

Are you running WIndows 7?

0 Likes

#5

Yes, Windows 7 x64. At 3143, the window just fades in nicely as it should, but at 3170, the window it flashes very briefly in a light colour before drawing). Since my theme/colour scheme is dark, it’s quite noticeable although very brief.

0 Likes

#6

Fixed those layer0.opacity errors in my theme but that didn’t help.

0 Likes

#7

Just tried a portable install. It’s less noticeable on startup than on my live copy, but very noticeable when opening Preferences…Settings (or Prefs…Keybindings), particularly if the parent window is quite large and wide. And for the purposes of this test, I’m using the adaptive theme with Monokai, so the whole window is quite dark.

0 Likes

#8

related:

0 Likes

#10

Can you confirm this or is it just on my system?

0 Likes

#11

I haven’t noticed it recently, but in the past, when my pc was running slow it was sometimes very noticeable - when opening a new window it is just white for a few seconds. It doesn’t bother me though

0 Likes

#12

As stated in my issue the flash of white is caused by some synchronous (plugin-)operation which delayes the client area of a window from being rendered. Windows draws the main window but ST’s UI is delayed by some millisecs. What you see as ‘flash of white’ is a raw Window without any content.

You won’t notice it with no or only few packages being active. The more packages are installed, which hook up the EventApi the more likely this effect is especially during startup, when tons of plugins need to be initialized and both sublime_text and plugin_host are very busy.

I modified the Default/settings.py to do a couple of things asynchronously, which avoids the flash of white but renders me a blank view for about 5-10s after startup until the 2-col-layout for preferences is set up and files are loaded.

Looks like the run_command API or the layout changes contain some kind of bottleneck.

0 Likes

#13

I concur with that summary. My feeling is that there is some brief delay between the Sublime window itself being drawn (with a lighter background) and the painting of the theme / editing area colourscheme. That delay seems to be exaggerated by a ‘real world’ Sublime setup with a bunch of plugins etc…

Although I notice it (to a lesser extent) even with a vanilla portable install. In that case it’s subtle on startup but quite clear when opening Prefs…Settings, or Prefs…Keybindings. It’s most noticeable with a dark theme/colour scheme + wide window.

It’s no big deal but Sublime prides itself on a smooth, slick UI and up to build 3143 that’s been the case. It just ‘feels’ slightly more clunky now.

0 Likes

#14

I’ve just noticed more aggressive flashing when using F11 to maximise Sublime. The space to be occupied flashes white before the Sublime theme and editing area are drawn.

0 Likes

#15

Confirmed.

EDIT: The funny thing even is, the Desktop background picture to sometimes show up shortly, even though other windows’s are open in the background.

0 Likes