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

Work with each Player, as a thread #2

Open
grigory-lobkov opened this issue May 15, 2018 · 0 comments
Open

Work with each Player, as a thread #2

grigory-lobkov opened this issue May 15, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@grigory-lobkov
Copy link
Owner

Move RTSP waiting / transferring / decoding / painting to separate thread
Make thread from ViewVlc215.Player.cs or Presenter\Views\IPlayerView.cs or Presenter\Presenters\PlayerPresenter.cs or Presenter\Presenters\SourcePresenter.cs

Worth

  • detect CPU high using
  • detect Memory leaks/high consumption
  • divide load between processors (seems, not actual for Windows 10)
  • make UI more responsive

Interruption

  • C# can only show components belonging to one thread

Offer to try

  • make separate forms for each player (for SourcePresenter.cs)
  • run this forms as a thread

Thread ATM2 = new Thread(new ThreadStart(ThreadProc));
ATM2.Start();

It calls this method:

private void ThreadProc()
{
var frm = new ATM();
frm.ShowDialog();
}

Can you suggest anything?

@grigory-lobkov grigory-lobkov added enhancement New feature or request help wanted Extra attention is needed labels May 15, 2018
@grigory-lobkov grigory-lobkov self-assigned this May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant