Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Framerate to reduce flicker ? #5

Open
daslicht opened this issue Mar 25, 2016 · 12 comments
Open

Increase Framerate to reduce flicker ? #5

daslicht opened this issue Mar 25, 2016 · 12 comments

Comments

@daslicht
Copy link

Hi,
when scrolling it looks very un-smooth compared to lets say Atom or SublimeText3.

Is there maybe a way to increase the frame rate so that it looks more smooth ?

~Marc

@opus1269
Copy link
Owner

Yea, I'll add an option. If it gets too high, bad things happen 😄

I may not get to it until next week.

@daslicht
Copy link
Author

sounds awesome ! 💃

@Kurre
Copy link

Kurre commented May 26, 2016

Any progress on this one? Moderate framerate is my only "problem" with this plugin 😄

Ideally we should aim for 60fps to make it buttersmooth, but even 30-40fps would be a nice improvement.

@daslicht
Copy link
Author

daslicht commented May 26, 2016

its really a shame thats not built in , heck any other free 'editor' is smoother

@arshcaria
Copy link

arshcaria commented Dec 15, 2016

I just downloaded the repo and modified the framerate parameter from 20 to 60, and then I built the plugin. After installing the newly-built plugin, the smoothness increased significantly (or as smooth as hell). I wonder why the author still haven't added the option to change the framerate. Maybe some side effects or something?

File changed:

https://github.com/opus1269/smooth-scroller/blob/master/src/com/weebly/opus1269/smoothscroller/SmoothScrollerMouseWheelListener.java#L41

Change FRAMES_PER_SECOND to whatever framerate value you want. I tried 60 withou noticing any bugs yet.

@julienvincent
Copy link

@arshcaria can you describe the steps you made to build + install?

@arshcaria
Copy link

arshcaria commented Dec 15, 2016

You need IntelliJ Idea installed to build plugins.

I had ZERO Intellij plugin devel experience before. And I can't figure out how to import the plugin project.
But no problem, I just created a new plugin project and put this repo's code to that plugin project.
Follow this guide to create / debug / deploy a plugin project: http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html

Then you can build (ctrl+f9) and run (shift + f10) this project. If it works like what you want, you can then
deploy the plugin JAR by clicking Build | Prepare Plugin Module for Deployment

Then you get a newly-generated JAR file in you project folder. Install this JAR to your Intellij Idea or Android Studio IDE.

Done.

@opus1269
Copy link
Owner

An initial version of built in smooth scrolling is available. I haven't tried it yet, but hopefully this plugin will be unnecessary soon.

https://youtrack.jetbrains.com/issue/IDEA-91965

@Kurre
Copy link

Kurre commented Dec 15, 2016

Some time ago I did the same thing and it improved the experience a lot.

But now JetBrains is bringing us native smooth scrolling (eventually, hopefully we don't need to wait for long time).

It's already available in IDEA master: https://youtrack.jetbrains.com/issue/IDEA-91965#comment=27-1800635

🙋

edit: ok, got ninja'd 🙂

@arshcaria
Copy link

arshcaria commented Dec 15, 2016

That's great news. This plugin has some conflicts with Idea's breadcrumb feature. When clicking on the parent breadcrumb, the editor's view won't properly change to the parent. The higher framerate you set, the smaller the movement is.

I just saw some fresh commits on native smooth scrolling in Idea. Wish it could be stable.
JetBrains/intellij-community@580a514

@Kurre
Copy link

Kurre commented Dec 23, 2016

True Smooth Scrolling feature seems to be a part of 2017.1 EAP builds (PHPStorm for me).

You need to add idea.true.smooth.scrolling=true to ~/.PhpStorm2107.1/idea.properties and enable Smooth scrolling in Settings - Editor - General to enable this True Smooth Scrolling feature.
...or at least it doesn't work without both options being set, so I assume it's really this aforementioned feature 🙂

It doesn't feel perfect yet, but isn't bad either.

@RomuloPBenedetti
Copy link

We with non high precision mouses are still in need of this :/ not sure if Jetbrain will correct it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants