Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - billarhos

#166
Ok fixed

thanks
#168
hi

i made a simple repro project. I include all necessary files in order to compile and run.

you can download from here: https://www.mediafire.com/download/sgndoqcbnhg6h2p/SfmlTest.zip

thank you
#169
Well

yes there is no linking problem. I link against the correct libs (debug with -d)
I compile tgui myself.
pTab is not a null pointer.
I will make a simple example and upload it to mediafire in this weekend (hold on)
Yes i get a call stack if i press retry button and the line that stops is : pGui->add(pWindow);

pGui is a "tgui::Gui *" and  pWindow is a "tgui::ChildWindow::Ptr"

i was wrong about "pWindow->add(pTab)"

As i said before if i remove  BackgroundColor and SelectedBackgroundColor from txt file and replace them with NormalImage and SelectedImage the i have no error.

thanks



#170
General Discussion / Re: Hi
08 October 2015, 23:56:46
Hi and Thanks
I do not believe i got a compatibility issue but i am not quite sure. I will check tomorrow.

I use dynamically linking and double check about debug and release libs and dlls
I am using community Visual Studio 2013

The error occur on this line "pWindow->add(pTab)" with the code on the first question.
If i use an empty png file and this lines
NormalImage       : "White.png" Part(0, 0, 60, 32) Middle(16, 0, 28, 32);
SelectedImage     : "White.png" Part(0, 32, 60, 32) Middle(16, 0, 28, 32);

then i got no error both in release and debug mode.




#171
General Discussion / assertion failed on debug
08 October 2015, 22:21:50
Hi
I got a strange debug assertion failed when i use this Tab

Tab
{
    BackgroundColor : rgba(180, 180, 180, 215);
    SelectedBackgroundColor : rgba(0, 110, 200, 130);
    TextColor : rgba(255, 255, 255, 215);
    SelectedTextColor : rgba(255, 255, 255, 245);
    BorderColor : rgba(240, 240, 240, 215);
    Borders : (1, 1, 1, 1);
}


The strange here is that when i run in release it is working just fine.
The assertion is in debug.




#172
General Discussion / Re: Label performance
25 September 2015, 13:28:41
Ok,

At the end sure i will set my app to 60 frames. Is that right now i make some tests.
I understand also about non-linear scaling of fps.

Thanks for the detailed explanation.
#173
General Discussion / Re: Label performance
25 September 2015, 12:48:00
I do not talk about general 1000 frames but that i gain 1000 frames.

Let me rephrase.

if i use "sf::Text labels[21]"

instead of "tgui::Label::Ptr labels[21]"

my app has 1000 frames(FPS) more. (3500fps vs 2500fps).

So, what i say is that sf::Text is faster than tgui::Label.

is it clear now.

thanks



#174
General Discussion / Re: Label performance
25 September 2015, 12:11:23
When i say this example, i mean my code example (just 6 edit boxes and 21 label texts).

I did not make a question yes - it is more pointing out this situation.
Have you ever noticed that frame delay?
Seem right for me to tell about my detection findings.

thanks
billarhos
#175
General Discussion / Label performance
25 September 2015, 11:01:14
Hi

I realize that if i use sf::Text instead of tgui::Label::Ptr, i gain more frame performance.
For example in release mode and 21 Texts painting out, i gain about 1000 frames. I use no frame limit.
In this example  i used DejaVuSans.ttf , regular style and 15 for font size.

both result appearance are the same.

Thanks
billarhos
#176
General Discussion / Re: tongle between themes
24 September 2015, 20:07:33
Ok done. Now can toggle. Thanks
#177
General Discussion / tongle between themes
24 September 2015, 18:39:42
Hi,
Many thanks for that great gui.

I have a situation when toggle between themes. The situation arise when u toggle between  a theme that have a png image and a theme that don't have any image.
The problem is that when u load again the theme that does not come along with an image, widgets have keep image source from the previous imaged theme.
For instance this is happening on "Button" widget.
I use theme->reload() function to do toggling.

thanks
billarhos