Skip to main content
PBU
Associate III
April 16, 2020
Solved

Interface with backend module

  • April 16, 2020
  • 3 replies
  • 1024 views

Hi,

In my current design all back end modules are communicating with GUI via model. In model im reading queue inside tick function. In case of any state change occurs it is notified to the corresponding presenter. I have placed all business logic related to that screen in presenter, in presenter i'm receiving blocking message call this made the model to miss ticks. Due to this screen rendering gets affected. How to resolve this issue? Do i need to change entire design.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Okay, this is definitely not a best practice to do - The presenter manages setting up the view. You should await this reply in a different task and notify the GUI task of this which then notifies the active presenter -> modifies the view to display this reply, etc.

3 replies

Martin KJELDSEN
Principal III
April 16, 2020

What are these blocking message calls? They will impact your render time, yes. Consider moving it to a different task.

PBU
PBUAuthor
Associate III
April 16, 2020

Hi @Martin KJELDSEN​ 

In presenter i'm sending events to other module and waiting for the reply. While waiting for reply event model misses tick. It effects screen rendering.