v2rayNG icon indicating copy to clipboard operation
v2rayNG copied to clipboard

performance issue (not responding | freezing UI)

Open mosayeb-a opened this issue 1 year ago • 0 comments

  • there is nothing any related issue.

when you go to the MainActivity, the ui freezes for almost a second. and if you go to the another screen and go back to the MainAcitvity, the app again freezes for a second. this freezing issue related to the reloadServerList function on the OnResume method on the MainActivity.

A solution to solve this problem is to load the servers asynchronously. But this solution has a problem that the servers are gradually added to the list, and to solve this we can show a loading view until all servers are added to the list.

If this solution is suitable for you, I can solve it.

https://github.com/2dust/v2rayNG/assets/108512702/b6522aeb-cc50-4b55-b42d-115a8f921046

device specification:

  • android 7
  • Asus Zenfone Max Plus

I am waiting for your response.

mosayeb-a avatar Jan 05 '24 13:01 mosayeb-a